Replace

Overview

Replaces the first string value with the second string value anywhere it is found in the variable.

Syntax

Replace(1, 2, 3)

Function Properties

Ordinal Type Description
1 string Required Variable with value to replace
2 string Required String to replace
3 string Required String used as replacement

Usage

Given @name=The 2007 model is better.

%%=Replace(@name,'2007','2008')=%%

System returns:

The 2008 model is better.
Last Updated: Jun 8, 2021