Re: Match HTML ...... string over multiple

2014-11-18 Thread Lars Noodén
On Tue, Nov 18, 2014 at 12:22 PM, mimic...@gmail.com wrote: > I am trying to extract a table (.. > until ) 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::

Re: Match HTML ...... string over multiple

2014-11-18 Thread Charles DeRykus
On Tue, Nov 18, 2014 at 12:22 PM, mimic...@gmail.com wrote: > I am trying to extract a table (.. until > ) and its content from an HTML file. > > With the file I have something like this > > > title="Product "> > . > . > . > > > > There could be more that one table in the file.however I am

Re: Match HTML ...... string over multiple

2014-11-18 Thread Octavian Rasnita
can do many more or do much more complex searching for HTML elements using HTML::TreeBuilder. Read: perldoc HTML::TreeBuilder perldoc HTML::Element --Octavian - Original Message ----- From: mimic...@gmail.com To: beginners@perl.org Sent: Tuesday, November 18, 2014 10:22 PM Sub

Match HTML ...... string over multiple

2014-11-18 Thread mimic...@gmail.com
I am trying to extract a table (.. until ) and its content from an HTML file. With the file I have something like this . . . There could be more that one table in the file.however I am only interested in the table within . /^.*.+?()\s*<\/div>.*$/ims The above and various variations I