Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#got the html page already and I saved as .txt my $output_file = "/temp_my_news.txt"; open(OUTPUT, "$output_file") || print "There is no file here!"; while(<OUTPUT>) { if ($_=~/<!-- 1nd table -->(.*?)<!-- \/1nd table -->/g) { print $1; }else{print "<br>Nothing Here!<br>";} } close OUTPUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pattern Search on HTML source.
by jettero (Monsignor) on Dec 31, 2007 at 16:56 UTC | |
|
Re: Pattern Search on HTML source.
by locked_user sundialsvc4 (Abbot) on Dec 31, 2007 at 17:04 UTC | |
|
Re: Pattern Search on HTML source.
by ww (Archbishop) on Dec 31, 2007 at 17:09 UTC | |
by Anonymous Monk on Dec 31, 2007 at 19:05 UTC | |
by ww (Archbishop) on Dec 31, 2007 at 19:20 UTC | |
|
Re: Pattern Search on HTML source.
by NetWallah (Canon) on Dec 31, 2007 at 17:12 UTC | |
by Anonymous Monk on Dec 31, 2007 at 20:47 UTC | |
by NetWallah (Canon) on Jan 01, 2008 at 03:41 UTC | |
|
Re: Pattern Search on HTML source.
by dwm042 (Priest) on Dec 31, 2007 at 18:49 UTC | |
|
Re: Pattern Search on HTML source.
by Popcorn Dave (Abbot) on Jan 02, 2008 at 00:39 UTC |