Try this regex on your lines, whole file, etc.
$string =~ s/(https?:\/\/.*)(?:\s|\.)/<a href="\1">\1<\/a>/oig;
I may not be perfect depending on your data, but it should work in most cases.
Frank Wiles <frank@wiles.org>
http://www.wiles.org
In reply to Re: replace url in text with html link
by ides
in thread replace url in text with html link
by thealienz1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |