Data: Find and replace in variable

Find and replace text within a state variable.

Help Centre › Functions & Formulas

Find and replace text within a state variable.

Add it to a process

In the process designer, open the Add step tab. Find Find and replace in variable under Data, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
FindYesThe text to search for in the variable value.
VariableYesName of the variable where the result will be stored
ReplaceNoThe text to replace matches with. Leave blank to remove the found text.
Count (leave blank for all)NoMaximum number of replacements. Leave blank to replace all occurrences.

See all Data steps.

Tips

  • Replaces text within a variable value
  • Leave Replace empty to remove the found text
  • Leave Count blank to replace all occurrences

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.