Replace
Description
Pure function returning text with every occurrence of search replaced by replacement. The search is matched literally — no regular expressions.
When to use
Use Replace to substitute or remove literal substrings — for example, sanitising user input, filling a template placeholder, or stripping unwanted characters. All occurrences in the string are replaced in a single pass. Because the search is literal (not a regex), special characters do not need escaping.
Pins
Input pins
| Pin | Type | Default | Notes |
|---|---|---|---|
| Text | string | — | The source string to perform replacements on. |
| Search | string | — | The literal substring to find. All occurrences are replaced, not just the first. |
| Replacement | string | — | The string to substitute in place of each match. Use an empty string to delete all occurrences. |
Output pins
| Pin | Type | Notes |
|---|---|---|
| Result | string | The string with all occurrences of search replaced by replacement. |
Example
Fill a simple email template by replacing a {{name}} placeholder. Wire the template
string into the Text input of Replace, set Search to "{{name}}", and wire the user
name into the Replacement input. Feed the Result output into the HTML body input of
Send email — every occurrence of the placeholder is replaced with the actual name.