Search and Replace tool
The Search and Replace tool performs find-and-replace on block text. The search/replace pairs themselves are supplied programmatically or by the configured command; the schema-visible options here control matching behaviour — literal versus regular-expression mode, case sensitivity, and whether the replacement scans source, target, or both.
When regular-expression mode is on, the case, dot-all, and multiline flags are applied to every pattern. By default the tool replaces all matches in target text only.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
dotAll | boolean | false | Make the period character match every character including line-feed |
ignoreCase | boolean | false | Ignore case when matching search patterns |
multiLine | boolean | false | Make ^ and $ match at the beginning and end of each line |
regEx | boolean | false | Enable regular expression mode for all search patterns |
replaceAll | boolean | true | Replace all matches instead of only the first |
source | boolean | false | Perform search and replace on source content |
target | boolean | true | Perform search and replace on target content |
Configure these parameters interactively and copy the flow-step YAML on the Tool Reference.
Examples
Replace a literal string in targets
Use literal matching on target text only.
target: true ignoreCase: false
Case-insensitive regex over both scopes
Enable regex mode with case folding across source and target.
regEx: true ignoreCase: true source: true target: true
Processing notes
Operates on translatable blocks only; non-translatable blocks pass through unchanged.
When neither source nor target is set, the tool applies to both for backward compatibility.
Limitations
Regular expressions use Go's RE2 syntax, which does not support backreferences or lookaround.
The search/replace pairs are supplied programmatically; only the matching options appear in the schema.
← Back to the Tool Reference