Skip to main content

Overview

The replace transformation replaces occurrences of a substring within a string.

Syntax

replace(<variable>, search="", isRegex=false, replace="")

Parameters

ParameterTypeRequiredDescription
variablestringYesThe string to search in
searchstringYesThe substring or regex pattern to find
isRegexbooleanYesWhether the search string is a regular expression
replacestringYesThe replacement string

Examples

replace(<variable>, search="old", isRegex=false, replace="new")
replace(<variable>, search="[0-9]+", isRegex=true, replace="X")
For replacing with a variable value, see Replace with Variable.