Casey, Had a little quote issue. here's the code, actually tested a little...
<cfset fileContents = 'this - <a href ="/SpecificDirectory/pathtofile.html">FileName</a> - should relocate'> <cfset fileContents = reReplace(fileContents, '<a[^>]*href\s*="([^"]*)"[^>]*>[^<]*</a>', '<cflocation url="\1">', "ALL")> <cfoutput> #htmlCodeFormat(fileContents)# </cfoutput> -- nathan strutz http://www.dopefly.com/ On 2/2/07, Casey Dougall <[EMAIL PROTECTED]> wrote: > > holly cow, I typed that ***... Sorry about that. I tried playing around > with what you typed but the statement is broken somewhere > > The first post should have been. > > <a href ="/SpecificDirectory/pathtofile.html">FileName</a> > > Needs to turn into > > <cfinclude template="/SpecificDirectory/pathtofile.html"> > > Guess its time I sit down and get a better understanding of regular > expressions. BarF!!! > > Casey > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268524 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

