Workspace 6.21.5
ReplaceStrings

Substitutes all instances of one string for another using a dictionary of replacements.

  • Default label: "Replace multiple strings"
  • Member of plug-in: Built-in
  • Catalogue path: Builtin/String
Inputs:
Regular expression matchingboolIf enabled, the operation will replace all substrings that match a regular expression, rather than a literal substring.
Case sensitive matchingbool

Replacement stringsCSIRO::DataExecution::ObjectDictionaryDictionary of replacements with the key being the original and the value being the replacement. If regular expression matching is enabled then the keys can represent QRegExp expressions. Replacement values would usually be of type QString but other types can be used and will be converted to QString via QVariant if the type supports it. No error will be produced if this conversion fails.
Input stringQString

Outputs:
StringQString