Gå til hovedinnhold

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.

IDsearch-replace
SourceBuilt-in
CategoryText processing
Cardinalitymonolingual
Tagsregex, configurable

Parameters

ParameterTypeDefaultDescription
dotAllbooleanfalseFå punktumtegnet til å samsvare med alle tegn, inkludert linjeskift
ignoreCasebooleanfalseIgnorer store/små bokstaver ved matching av søkemønstre
multiLinebooleanfalseGjør at ^ og $ samsvarer ved begynnelsen og slutten av hver linje
regExbooleanfalseAktiver modus for regulære uttrykk for alle søkemønstre
replaceAllbooleantrueErstatt alle treff i stedet for bare det første
sourcebooleanfalseUtfør søk og erstatning på kildeinnhold
targetbooleantrueUtfør søk og erstatning på målinnhold

Configure it live

Configuration
Loading form…

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