http://www.perlmonks.org?node_id=3413

A regex to find http:// and ftp:// . I needed this about an hour ago and didn't see it here, so now that I have it I'm sharing. :)
s#(http://[\w./=\?-]+)#<A HREF=\"$1\">$1</A>#sgi;

Replies are listed 'Best First'.
Re: http:// and ftp:// parser
by Anonymous Monk on May 05, 2003 at 04:09 UTC
    Hey is this perl how do i use it to check and make all email addresses in that scalar into mailto: links ??? please post and email tejas@zoonic.com