Read-ReplacePattern

Searches for a character string in a text line and exchanges it with another character string. The wildcards * and ? can be used, variables are allowed.


Settings:

  • String
    Character string in which characters are to be exchanged.
  • Previous string
    Substring to be searched for.
  • Following string
    The substring found is replaced by this string.
  • Store result in
    Name of the variable in which the read out substring is to be stored. Specify only the name of the variable, not the $ sign and the curly brackets.


Example:

Replaces in the content of the _String variable the character string "in die" with "nicht zur" and stores the changed content in the _Result variable. If _String has the value "Ich gehe heute in die Schule", the result value is "Ich gehe heute nicht zur Schule":


Corresponds to DSM eScript command:

  • StrModify


See also: