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 |
Back to
Cool Uses for Perl