http://www.perlmonks.org?node_id=1023546


in reply to How to grab a portion of file with regex

Hi can you help me to grab a portion of webpage via regex.

If you're not smart enough to find an example among the the 11,000 duplicates of this question, maybe you shouldn't try?

perlfaq6#Can I use Perl regular expressions to match balanced text?
HTML Parser suggestions
See also the real discouragement Oh Yes You Can Use Regexes to Parse HTML! and the real encouragement Re^2: parsing XML fragments (xml log files) with... a regex
How do I match XML, HTML, or other nasty, ugly things with a regex?
How do I remove HTML from a string?
Re: Parsing webpages

  • Comment on Re: How to grab a portion of file with regex (don't)