The function fn:replace replaces all occurrences of a string in a target with a specified string. The value returned is a string data type.

Example

Values saved in a group attribute include underscores. When these values are inserted into a message, the underscore characters are replaced by a space.

The expression for inserting these values into a message is constructed as follows:

<%${fn:replace(group.CustomAttribute['Name'],'_', ' ')}%>
CODE

Structure​

fn:replace(string, string, string)

Parameters​

Parameter

Description

string

Specifies the target string.

string

Specifies the value to replace in the target string.

string

Specifies the value that replaces the string given in the previous parameter.