in reply to How do I replace a URL with a clickable hyperlink?
$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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Answer: How do I replace a URL with a clickable hyperlink?
by htmanning (Friar) on Apr 06, 2005 at 00:45 UTC | |
by jhourcle (Prior) on Apr 06, 2005 at 03:50 UTC | |
by Anonymous Monk on Apr 06, 2005 at 18:20 UTC | |
by jhourcle (Prior) on Apr 07, 2005 at 01:41 UTC |