in reply to Creating links in the URLs in a text paragraph

How do I replace a URL with a clickable hyperlink?
  • Comment on Re: Creating links in the URLs in a text paragraph

Replies are listed 'Best First'.
Re^2: Creating links in the URLs in a text paragraph
by Anonymous Monk on Jun 25, 2007 at 05:13 UTC
    Thank you Zaxo and Anon.
    sub GetLinks { $text = shift; use Regexp::Common; $text =~ s[($RE{URI}{HTTP})] [<a href = "$1" target="_blank">$1</a>]g; return($text); }
    that subroutine works...

    Many a thanks!!