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;
[download]
Comment on
http:// and ftp:// parser
Download
Code
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
[reply]
Back to
Cool Uses for Perl