Replace operation
The replace operation returns a copy of the
string with all occurrences of the old substring that is replaced
by the new substring.
The following rules apply:
- The character \ escapes the characters in the function parameters. Characters such as \ and " need escaping.
- Nested function calls are not supported.
- Special characters are not supported.
Syntax
${replace(str , old , new)}
Parameters for the Replace Operation
Parameter |
Description |
---|---|
str |
The string to search. |
old |
The substring to be replaced by the new substring. |
new |
The substring that replaces the old substring. |
Examples
${replace(${environment("REMOTE_USER")},"NAMERICA\\",)}
${replace(${environment("REMOTE_USER")},"NAMERICA\\","")}