$text = <<TEXT; Hello World http://www.world.com/index.htm http://foo.com http://bar.com TEXT ($links = $text) =~ s!(http://[^\s]+)!<a href="$1">$1</a>!gi; print $text,"\n\n",$links;
Originally posted as a Categorized Answer.
In reply to Re: How do I replace a URL with a clickable hyperlink?
by tachyon
in thread How do I replace a URL with a clickable hyperlink?
by tipthepizzaguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |