perlnoobster has asked for the wisdom of the Perl Monks concerning the following question:
Hi perl monks,
I'm currently trying to extract some information from a website, this is the html segment that I am working on:
<td class="ttl"><a href=# onClick="helpW('h_status.htm');">Status</a>< +/td> <td class="nfo">Coming soon. Exp. release 2012, November 13th</td> </tr>
the code that I am using is the following to extract the Status onwards:
my (@ASINS2)=$final_page=~m!Status</a></td>(.+?)/td>!g;
The results yield nothing, however if I were to change the code to the following:
my (@ASINS2)=$final_page=~m!<td class="nfo">(.+?)</td>!g;
It seems to work, highlighting that the code/regex has an issue trying to grab any html that is separated on new lines, please can someone help? i'm sure its a regex issue but I cant figure it out?!
(all i require is the Coming soon..... segment)
Thank you
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl Get issue
by choroba (Cardinal) on Nov 14, 2012 at 10:59 UTC | |
by perlnoobster (Sexton) on Nov 14, 2012 at 11:05 UTC | |
by ColonelPanic (Friar) on Nov 14, 2012 at 11:48 UTC | |
by perlnoobster (Sexton) on Nov 14, 2012 at 12:50 UTC | |
by Don Coyote (Hermit) on Nov 14, 2012 at 13:42 UTC | |
| |
by choroba (Cardinal) on Nov 14, 2012 at 11:09 UTC | |
Re: Perl Get issue
by space_monk (Chaplain) on Nov 14, 2012 at 14:05 UTC | |
Re: Perl Get issue
by Anonymous Monk on Nov 14, 2012 at 18:21 UTC |
Back to
Seekers of Perl Wisdom