There's an inherent problem with what you're trying to do: CF hands off to an external regex engine.
So, CF tries to evaluate everything it can first, then sends the raw text to an engine. So, you're replacing the found string with whatever function(\1) (the result of running function on the string \1) returns. The only way I've found around that I've found is to wrap the found string in delimiters (I like the bell, chr(7), since it's untypable) and then use a replace() to run the function on the text. HTH --Ben Kazmierczak, Kevin wrote: > Is it possible to do this: > > > > REReplace(string, "([EMAIL PROTECTED])", "MyCFFunctionHere(\1)", > "ALL") > > > > I want to run my backreferenced value through a cf function and it > doesn't seem I can do that. > > > > Any thoughts? > > > > Kevin > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192129 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

