![]() |
|
Welcome to the Monastery | |
PerlMonks |
Linkifying URLs in plain textby grinder (Bishop) |
on Nov 21, 2008 at 15:35 UTC ( #725157=perlquestion: print w/replies, xml ) | Need Help?? |
grinder has asked for the wisdom of the Perl Monks concerning the following question: It's Friday afternoon and my brain is fried. I have a boatload of plain text that contains things that look like http links. If I find one, then I want to wrap it in HTML anchors. I don't think there's a module that does this, but I welcome suggestions. Otherwise, the spec is in the test below. If someone could show me the error of my ways I'd be a happy man. Bonus points for converting the first link (http://www.example.com) to http://www.example.com/ in the HREF (add the omitted slash).
• another intruder with the mooring in the heart of the Perl
Back to
Seekers of Perl Wisdom
|
|