$url contains the orginal URL which was grabbed. Here-in lies the problem:$text =~ s#src=\"(.*?)\"#src=\"$url$1\"#sig;
http://www.slashdot.org/image.gifit get's changed into:
http://www.slashdot.orghttp://www.slashdot.org/image.gifbut if the url was a relative url:
image.gifbecomes:
http://www.slashdot.org/image.gifwhich works. So my question/problem, is there any way to get the regex to ignore absolute urls?
In reply to Help with Regex: (Absolute/Relative URLs) by OverlordQ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |