Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
In order to ignore the url I tried many many conditional statements but nothing is working.<A HREF="http://www.cnn.com/WEATHER/index.html">
Also tried this:if($url =~ /^<A\s+HREF\=\"http\:\/\/www.cnn.com/i) { print "skip this url.\n"; next; }
And another attempt:if($url =~ /<A HREF\=\"http\:\/\/www\.cnn\.com\/WEATHER\/index\.html\" +>/i) { print "Skip this url.\n"; next; }
if($url =~ /<A HREF="http://www.cnn.com/WEATHER/index.html">/i) { print "skip this url.\n"; next; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: matching a Url
by demerphq (Chancellor) on Sep 09, 2002 at 13:11 UTC | |
|
Re: matching a Url
by talexb (Chancellor) on Sep 09, 2002 at 13:18 UTC | |
|
Re: matching a Url
by Util (Priest) on Sep 09, 2002 at 14:45 UTC | |
by demerphq (Chancellor) on Sep 09, 2002 at 15:07 UTC | |
|
Re: matching a Url
by Popcorn Dave (Abbot) on Sep 09, 2002 at 16:12 UTC |