Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I seem to be capturing all my links (about 5000) in all my pages using File::Find in this part here. Is this the best way to get all my "http" and "https" links? I need to get the full http or https such as example:
http://servername/aa/bb/index.html
Here is the part I was wondering if I should improve?
if($line =~ /(https?:[^"]+)"/) { print "WEB link->$1\n"; }

Replies are listed 'Best First'.
Re: Capturing http links
by valdez (Monsignor) on Jul 14, 2003 at 17:02 UTC