XP is just a number | |
PerlMonks |
Re^2: capturing between divsby monarch (Priest) |
on Apr 13, 2009 at 03:58 UTC ( [id://757149]=note: print w/replies, xml ) | Need Help?? |
"If you're not using an HTML parser, you will have much more brittle code." ..of course if you don't understand how the parser works then you're no better off than if you used a simple regexp in the first place. Try this for size:
This regexp simply looks for content between div tags. It does not support nested divs.. but if you want complex parsing you're better off using a complex parser. The regexp has the s (multi-line), g (global), and i (case-insensitive) flags set.
In Section
Seekers of Perl Wisdom
|
|