---
title: REPLACE
url: https://www.tines.com/docs/formulas/functions/replace/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/docs/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# REPLACE

*[View on tines.com](https://www.tines.com/docs/formulas/functions/replace/)*

Replaces every occurrence of the search text with the replacement text.

**Categories:** Text

## Syntax

```
REPLACE(text, search, replace_with)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "We will build what we need"
  }
}
```

Formula:

```
REPLACE(my_action.message, "we", "I")
```

Output:

```json
"We will build what I need"
```

## Sample actions

```json
{
  "standardLibVersion": "14",
  "actionRuntimeVersion": "3",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "We will build what we need"
        }
      },
      "position": {
        "x": 2445,
        "y": 4455
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "REPLACE",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "replace": "=REPLACE(my_action.message, \"we\", \"I\")"
        }
      },
      "position": {
        "x": 2445,
        "y": 4560
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
