in reply to Re: Canonical regexp for urls beginning with http://
in thread Canonical regexp for urls beginning with http://

As long as that's your only line. You could have just said:
@ARGV = qw(/export/home/ssesar/example); print "line = $_" for <>;
for the accuracy you give. See the other answers in this thread for things which actually detect valid URLs, and reject bad ones.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Re: Canonical regexp for urls beginning with http://
by Tuna (Friar) on Feb 22, 2001 at 03:04 UTC
    Thanks! Much easier!