Replace
Replace text, optionally using a regular expression.
Command in the String toolkit · id ooa.string/replace · 7 inputs (2 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | Source text. | |
| Find | String | Yes | Text or regex to find. | |
| Replace with | String | No | Replacement text. | |
| Find is a regular expression | Boolean | No | false | Treat 'find' as a regular expression. |
| Ignore case | Boolean | No | false | Match without regard to upper/lower case. |
| Start | Number | No | 0 | Zero-based position to start replacing from; text before it is kept as is. |
| Count | Number | No | -1 | Replace at most this many matches; -1 replaces all. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | String | Text after replacement. |