reference:evaluator:replace

Replace(
     string:string,
     string:search,
     string:replace,
     [int:start],
     [int:count],
     [bool:case]
)
string

Arguments

string

Input string to search.

search

Sub-string to search for.

replace

String to replace the sub-string with.

start

Optional. Position to start the search at (default is 0 meaning the beginning of the string).

count

Optional. Maximum number of replacements (default is -1 meaning no limit).

case

Optional. Set to True to make the search case-sensitive.

Return value

Returns the result of the replace operation.

Description

Searches the input string for the search sub-string and replaces it with replace if found.

Example:

Output( Replace("Hello there!", "e", "a") );
--> hallo thara!