1. Docs
  2. Formulas
  3. Functions

REGEX_REPLACE

Replaces every occurrence of a regex match in text with the second argument.

Categories: Text

Syntax

REGEX_REPLACE(text, regex, replacement)

Examples

Example 1

Input

1
{
2
"my_action": {
3
"message": "hello hello!"
4
}
5
}

Formula

REGEX_REPLACE(my_action.message, "h\w+", "goodbye")

Output

"goodbye goodbye!"

Sample actions

Event Transform
My Action
Event Transform
REGEX_REPLACE

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?