http://www.perlmonks.org?node_id=274001


in reply to How do I replace a URL with a clickable hyperlink?

If you are interested in matching valid HTTP URI's, you could use Regexp::Common:
use Regexp::Common; $text =~ s[($RE{URI}{HTTP})] [<a href = "$1">$1</a>]g;

Abigail