hiddengeek has asked for the wisdom of the Perl Monks concerning the following question:
in the ml_test.html, there is some data that is laid out like:open(INPUT, "ml_test.html"); while (<INPUT>) { $text .= $_; } close(INPUT); if ($text =~ /\bclb_new>\b(.*?)\b<\/a>/g) { print $1; }
Above my code gets the "DATAINEED" but not the "MOREDATAINEED". I have tried different /g placements, but to no avail. Thank you for your help....target=clb_new>DATAINEED</a></font>... ...target=clb_new>MOREDATAINEED</a></font>...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(sacked) Re: global issue with an RE, I think...
by sacked (Hermit) on Nov 17, 2001 at 02:22 UTC | |
|
Re: global issue with an RE, I think...
by converter (Priest) on Nov 17, 2001 at 01:49 UTC | |
|
Re: global issue with an RE, I think...
by tadman (Prior) on Nov 17, 2001 at 01:54 UTC | |
|
Re: global issue with an RE, I think...
by impossiblerobot (Deacon) on Nov 17, 2001 at 01:55 UTC |