Replaces occurrences of substring1 with callback, in the specified scope. The search is case-insensitive.
replaceNoCase(string, substring1, callback [, scope])
→ returns string
string.replaceNoCase(substring1, callback[, scope])
function(transform, position, original)
.
1
getVal = replaceNoCase("ColdFUsion", "u", "a");
writeDump(getVal);
Expected Result: Expected Result: ColdFasion
<cfset getVal = replaceNoCase("ColdFusiOn", "O", "a", "ALL")>
<cfdump var="#getVal#">
Expected Result: Expected Result: CaldFusian
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.