ReplaceList
I have used ReplaceList() to replace values in one list with other values, but what I need is a REReplaceList() that would replace all the values in a list with a regex. Any ideas how I'd do this? The only thing I can think of is doing a loop. Here's the code to put in "hey" every three characters into every word in the list #mylist# using a loop.
<cfloop list="#mylist#" index="x">
<cfset mynewword = reReplaceNoCase(#x#, "(.{3})", "\1hey", "all")>
<cfset NewList = ReplaceNoCase(#NewList#, "#x#", "#mynewword#")>
</cfloop>
But if ReReplaceList existed, couldn't I just do this?:
<cfset mynewlist = REReplaceList("#list#", "(.{3})", "\1hey", "all")>
