Welcome to WebmasterWorld Guest from 220.127.116.11
I'm hoping someone can help me here. I'm trying to extract a list of urls from a string.
Remembering that urls could be typed "http://blahblah.com" or "www.blahblah.com".
Here is what I have so far.
my @links = $textString =~ m#((www\.¦http://)[^\s<"']+)#gm;
It seems to be working fine in most scenarios except that I always get an extra www. or http:// because of the parenthesis around the "or" condition.
Any help would be greatly appreciated.