Skip to main content
The Replace Text action searches a string and substitutes the matching content. It supports straightforward literal replacement and reusable regular expressions.

Inputs

Outputs

Literal replacement

Literal mode escapes regex punctuation in Search Text, so a value such as . matches a period instead of any character. By default, every exact match is replaced. For example, replace draft with final in:
The default result is final-report-final. Turn on Only First Occurrence to produce final-report-draft.
Whole Words uses regex word boundaries. It works best for letters, numbers, and underscores; punctuation and some non-Latin word boundaries may behave differently than natural-language word detection.

Regex replacement

Regex mode uses the flags configured on Search Pattern. A regex with the g flag replaces every match; without g, only the first match is replaced. Replacement tokens supported by JavaScript are available, including $& for the complete match and $1, $2, and so on for capture groups. For example, use this pattern:
And this replacement:
The value 2026-07-24 becomes 07/24/2026.
Literal-mode options disappear when Use Regex is enabled. Configure case sensitivity, global matching, and boundaries in the Regular Expression action instead.