Yes, you're right, I could use Java and it does answer my need for something more elegant than a hack.
However, I'd be curious to compare the speed between Java regex and native CF regex. Might give it a try. -----Original Message----- From: Peter Boughton [mailto:[email protected]] Sent: 14 January 2009 09:37 To: cf-talk Subject: Re: RegExp - how to escape a zero > It would indeed appear that CF regexp just falls short. So use Java RegEx. <cfset NewString = TestString.replaceAll( '([A-D])([A-D])' , '$10$2' ) /> And if you actually do have a 10th group, or want to make it more readable, you can do: <cfset NewString = TestString.replaceAll( '([A-D])([A-D])' , '$1\0$2' ) /> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317915 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

