replace
Replaces all instances of a substring within a string with a given string.
Parameters
str1{String}: The input string. This parameter is required.str2{String}: The substring to replace. This parameter is required.str3{String}: The replacement string. This parameter is required.returns{String}: The resulting string.
Usage
{{ replace str1 str2 str3 }}
Example
{{ replace 'hello' 'l' 'm' }} <!-- Outputs: 'hemmo' -->
Was this article helpful to you?