Replace method (text)

Replaces a specified text with another specified text.

Syntax

text1.Replace(text2, text3)

Returns text1 with any values of text2 replaced with text3.

Example

{% Var text = 'alpha bravo charlie' %}

{{ text.Replace('bravo', 'delta') }}

The above example would output: alpha delta charlie.