string.replace()
Replaces occurrences of substring1
in a string with substring2
in a specified scope.
The search is case-sensitive.
string.replace( substring=any, replacement=any, scope=string )
Returns: String
Examples
str = "Lucee";
res = str.replace("U","U","all");
writeDump(res);
res = str.replace("l","l","all");
writeDump(res);
res = str.replace("L","","all");
writeDump(res);
res = str.replace("Lucee","I Love Lucee");
writeDump(res);