I'm running my own version of bulletinboard and I have a little problem with hyperlinks. I'd like to make them really work. So if posted message includes http://blaablaablaa it would be a hyeprlink when reader opens the message. Messages are stored in .html files so it's quite easy to add <a href="http://blaablaablaa">http://blaablaablaa</a> to original file by my cgi-parser.
I know it's something like:
if $message =~ /http:\/\//
But what else?
Scrap the regex, go with a module:
http://search.cpan.org/~rosch/URI-Find-0.13/ http://www.perladvent.org/2002/1st/
If you are interested in why I say you should skip the regex,
http://aspn.activestate.com/ASPN/Cookbook/Rx/Recipe/59864
Thanks for making me look this up, time to install YAMod....
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>