P is for Practical | |
PerlMonks |
Re: html analysis tool via regexby davorg (Chancellor) |
on Oct 13, 2005 at 09:12 UTC ( [id://499826]=note: print w/replies, xml ) | Need Help?? |
I use regex to precisely tell perl what I want pulled out. You really don't want to do that. Regular expressions will potentially break on all but the simplest HTML pages. If you want to parse HTML then you should use HTML::Parser or one of its subclasses. Personally I usually use HTML::TreeBuilder.
-- <http://dave.org.uk> "The first rule of Perl club is you do not talk about
Perl club."
In Section
Seekers of Perl Wisdom
|
|