REGEX_REPLACE

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

Syntax 

REGEX_REPLACE(text, regex, replacement)

Usage 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 

Transform
My Action
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?