$text = "Come visit http://mysite.com and see what it says."; $text =~ s!(http://[^\s]+)!<a href="$1" target="_new">$1</a>!gi; print $text;
In reply to Re: How do I replace a URL with a clickable hyperlink?
by tipthepizzaguy
in thread How do I replace a URL with a clickable hyperlink?
by tipthepizzaguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |