I'm trying to pull a url from an inputted string (containing other text) - as far as I can tell, the best way of doing this is using Coldfusion ReMatch.
Here's where I've got so far;
<cfset msg="This is a sample message containing a URL http://www.experts-exchange.com
The msg variable could contain text either side of the url.
So far, I've got this far;
<cfset theurl = #REMatchNoCase("https?://(
Which appears to work (or, at least, doesn't product an error!).
However, I'm struggling with returning the url to the page. I understand that my RegEx will produce an array, however I can figure out a way of getting to it. I've tried ListFirst without success.
Any pointers much appreciated!