Also take a look at Regex Back References: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000989.htm
<cfhttp url="http://google.com.au" /> <cfset NewFileContent = REReplaceNoCase(cfhttp.filecontent, "(<a[^>]*>)*(</a>)", "\1 ClickFind \2", "all") > <cfdump var="#cfhttp#"> <cfoutput> #NewFileContent# </cfoutput> On 14/02/2009, at 9:47 PM, Chris Velevitch wrote: > > In Ben Forta's book "Sams Teach Yourself Regular Expressions in 10 > Minutes", he discusses this very scenario, but book's at the office. > If I recall correctly, he used either lookahead or lookbehind or even > a combination of both. > > > Chris > -- > Chris Velevitch > Manager - Adobe Platform Users Group, Sydney > m: 0415 469 095 > www.apugs.org.au > > Adobe Platform Users Group, Sydney > Feb '09 meeting: Hands On Cairngorm Basics > Date: Mon 23rd Feb 6pm for 6:30 start > Details and RSVP on http://groups.adobe.com/posts/d094878396 > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
