Skip to main content

Overview

The replace-var transformation replaces text in a string using a variable value as the replacement.

Syntax

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

Parameters

ParameterTypeRequiredDescription
variablestringYesThe string to search in
replace-variablevariableYesThe variable whose value is used as the replacement
searchstringYesThe substring or regex pattern to find
isRegexbooleanYesWhether the search string is a regular expression

Examples

replace-var(<variable>, <replace-variable>, search="placeholder", isRegex=false)
replace-var(<variable>, <replace-variable>, search="[0-9]+", isRegex=true)
This is similar to the Replace transformation, but uses a variable for the replacement value instead of a static string.