1. Docs
  2. Formulas
  3. Functions

REPLACE_FIRST

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

Categories: Text

Syntax

REPLACE_FIRST(text, search, replace_with)

Examples

Example 1

Input

1
{
2
"my_action": {
3
"message": "we will build what we need"
4
}
5
}

Formula

REPLACE_FIRST(my_action.message, "we", "I")

Output

"I will build what we need"

Sample actions

Event Transform
REPLACE_FIRST
Event Transform
My Action

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?