Find And Replace Action

This action permits to find and replace text in a language.

The action is configured as follows:


type

"FindAndReplace"

string, Mandatory

locale

The language of the text to apply the operation to.

string, Mandatory

mode

Specifies the mode of finding text:

  • Plain: The system searches the plain text

  • Wildcards: The system interpretes "*" and "?" as wildcard operators.

  • Regex: The system interpretes the text to search as a regular expression.

string, Mandatory

pattern

The text to search. Depending on the mode this is either plain text, a wildcard expression or a regular expression.

string, Mandatory

replaceWith

Text to replace the found occurrences of the pattern.

string, Mandatory

enforceWordBreaks

Optional, default is true.

If true then the pattern is expected to start and end at word boundaries. If the pattern is "hello" then it will find this word inside "I say hello." but not inside "I say helloworld".


ignoreCase

Optional, default is false.

True: Ignore case when finding text pattern. False: Do not ignore lower/uppercase differences.

bool, Optional

skipGreen

Optional, default is false.

  • true: Skip segments whose status in locale is Confirmed (green). Their text and status are left untouched. The status that applies to the scope is used, including a job-specific status. The status is checked when each segment is written, so a segment confirmed after the request was sent is still skipped.

  • false: Also replace text in segments whose status is Confirmed

bool, Optional