On Tue, Nov 18, 2014 at 12:22 PM, mimic...@gmail.com <mimic...@gmail.com> wrote: > I am trying to extract a table (<table class="xxxx"><tr><td>...... > until </table>) and its content from an HTML file.
Because there can be nested tables and other elements that can throw off simple regex parsing, I would try either HTML::TokeParser, HTML::TokeParser::Simple, or XML::TokeParser. The latter would be only if the input is valid, well-formed XHTML. TokeParser can be used to find a table within a specific div. Regards, /Lars -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/