jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:
Creates output:my $item = qq~<tr> <td><font size=2><B><a href='javascript:void(0);' onClick="javascr +ipt:window.open('../exc_details.asp?PID=0000','Nyhet','toolbar=no,loc +ation=no,directories=no,status=no,menubar=no,scrollbars=yes,resizeabl +e=yes,width=380,height=500');" href="javascript:void(0);">EXCAVATOR</ +A></B></font></td> <td><font size=2>1 Jul 2010</font></td> <td><font size=2>10 Aug 2010</font></td> <td><font size=2><B>Shellshocked</B></font></td> </tr>~; my $p=HTML::TokeParser->new(\$item); my $data = $p->get_text(['</td>']); print "$data\n";
How can I cleanly just get the two dates fields?EXCAVATOR 1 Jul 2010 10 Aug 2010 Shellshocked
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Tokeparser extraction
by Corion (Patriarch) on Feb 20, 2010 at 14:56 UTC |