Substitutes one text fragment for another.
Use it when
Replace the first or every non-overlapping literal text fragment without regular expressions.
Inputs and output
- Text is required text.
- Search is required text.
- Replacement is required text.
- Mode selects all, first.
- Text returns text.
Rules
Search is a non-empty literal fragment, never a regular expression. Mode chooses the first or all non-overlapping matches.
Text can contain at most 1,000,000 characters. An invalid value, exceeded limit, or unsupported option stops the workflow at this block with a clear message.
Exact settings reference
These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.
| ID | Setting | Control | Default | Bounds/options |
|---|---|---|---|---|
mode | Mode | toggle | all | options: All (all), First (first) |
Errors and recovery
When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.
Connector data types
The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | text — Text | text | yes |
| Input | search — Search | text | yes |
| Input | replacement — Replacement | text | yes |
| Output | result — Text | text | on success |
