Apologies in advance for the fact that this is OT, but I haven't gotten
around to subscribing to the cftalk list yet.
I'm re-writing some code on a site to use cfx_http rather than cfhttp. When
I get the fileconent back I need to go through it and before each relative
URL in a link, stick "cfx_displaypage.cfm?url=". Any full URLs should be
left as is.
I'm using REReplaceNoCase as follows, but it ain't working:
<cfset page =
REReplaceNoCase(cfx_http.filecontent,'href="[^(http|mailto)]','href="cfx_displaypage.cfm?url=','ALL')>
I'm sure I'm just missing something small, can anyone else see what it is?
BTW, I don't need to take account of things like code samples etc., I know
what format the content of the source page will be in.
Thanks
Mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com