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

htmanning has asked for the wisdom of the Perl Monks concerning the following question:

I'm using the following to automatically take a domain name, and turn it into a link:
$text =~ s!([^\s]+\.com)!<a href="http://www.$1" target="_new">$1</a>! +gi;
But what if I have something like
www.test.com/thisandthat/this.html
How do I parse that entire link and make it a hyperlink?