Replace Substring
Replaces text in a string that matches a pattern. Use it to clean up or reformat text values inside a flow.
What it does
- Finds matches of a string or regular-expression pattern in the original text.
- Replaces them with the replacement value.
- Returns the resulting text.
Inputs
| Name | Type | Description |
|---|---|---|
| Original Text | String | Original text |
| Pattern | String | String or regex to match |
| Replacement | String | String to replace pattern by |
| Case Sensitive | Boolean | Whether the match is case sensitive |
| Replace Globally | Boolean | Whether to replace all matched values |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether the replacement was successful |
| Result Value | String | Result value of the replacement |
Notes
- The pattern can be plain text or a regular expression.
- Turn on Replace Globally to replace every match rather than only the first.