string.rEReplaceNoCase()
Uses a regular expression to search a string for a string pattern and replace it with another. The search is case-insensitive.
string.rEReplaceNoCase( regex=string, substring=string, scope=string )
Returns: String
Examples
str = "count the NUMBERS 123... or ONE,TWO,THREE";
res = str.rereplacenocase("[0-9]+","[one,two,three]","all");
writeDump(res);
res = str.rereplacenocase("[a-z]+","1","all");
writeDump(res);
res = str.rereplacenocase("[a-z]","1","all");
writeDump(res);
res = str.rereplacenocase("[a-z]+","I Love Lucee","all");
writeDump(res);