I'm trying to change instances of the following line:
URL: http://www.google.com/?s= test
to
URL: <a href="http://www.google.com/?s=%20test">http://www.google.com/?s= test</a>
note that the anchor url is url encoded
I've managed to get parse the URL part using a very simple regex:
<cfset getFacts.fact_details = REReplace(getFacts.fact_details,
"URL:[ ]*([^#chr(13)##chr(10)#]+)",
"URL: <a href='\1' target='_blank'>\1</a>", "ALL")><!--- URL to newline into link --->
which just grabs the contents after the "URL:" up until a newline
How can I incorporate URLEncodedFormat with this, or use all regex?