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