Hello,
This should be a pretty easy one for most peeps, 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 " or "
Here is what I have so far.
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.
This should be a pretty easy one for most peeps, 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 " or "
Here is what I have so far.
Code:
my @links = $textString =~ m#((www\.¦[URL unfurl="true"]http://)[/URL][^\s<"']+)#g;
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.