Replace Substring

Replaces text in a string that matches a pattern. Use it to clean up or reformat text values inside a flow.

What it does

  • Finds matches of a string or regular-expression pattern in the original text.
  • Replaces them with the replacement value.
  • Returns the resulting text.

Inputs

NameTypeDescription
Original TextStringOriginal text
PatternStringString or regex to match
ReplacementStringString to replace pattern by
Case SensitiveBooleanWhether the match is case sensitive
Replace GloballyBooleanWhether to replace all matched values

Outputs

NameTypeDescription
SuccessBooleanWhether the replacement was successful
Result ValueStringResult value of the replacement

Notes

  • The pattern can be plain text or a regular expression.
  • Turn on Replace Globally to replace every match rather than only the first.