Replace

Search and replace text.

Input

Field Definition Type Required
look in Text within which a search for a string is performed. String FALSE
look for String for which a search is performed. Value can be a pattern using regular expressions. See Find Pattern. String FALSE
replace with String with which input text is replaced. String FALSE
all instances Indicates whether all strings matching the value in look for are replaced. Default is False. Boolean FALSE
case sensitive

Indicates whether all strings matching the string value and case in look for are replaced. Default is True.

For example, if case sensitive is set to False, then a value of Test in look for would match test, TEST, and tEsT.

Boolean FALSE

Output

Field Definition Type
result text

String value after matching string values are replaced.

If no instances of look for are found, then result text is the same as the original input value for the look in field.

String

Example

look in look for replace all instances result text
Hello world Hello Goodbye False Goodbye world
(206) 555-1234

\d

(regular expression for any digit)

# True (###) ###-####
Visa 123456780123

\d{8}

(regular expression for 8 digits in a row)

######## False Visa ########0123
A*B@C+D

[^\w]

(regular expression ^ for not combined with \w for any alphanumeric character)

Null True ABCD

Related topics

Functions in Workflows

Workflow elements