REReplaceNoCase()
Uses a regular expression to search a string for a string pattern and replace it with another.
The search is case-insensitive.
REReplaceNoCase( string=string, regex=string, substring=string, scope=string );
Returns: String
Examples
writeDump(REReplaceNoCase("xxabcxxabcxx","ABC","def"));
writeDump(REReplaceNoCase("CABARET","C|B","G","ALL"));
writeDump(REReplaceNoCase("cabaret","[A-Z]","G","ALL"));
writeDump(REReplaceNoCase("I love jeLLies","jell(y|ies)","cookies"));
writeDump(REReplaceNoCase("I love Jelly","jell(y|ies)","cookies"));
See also
- Strings
- Regex
- string.rEReplaceNoCase()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)