Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Parsing HTML tags with regexby Perl Mouse (Chaplain) |
on Nov 14, 2005 at 11:22 UTC ( [id://508276]=note: print w/replies, xml ) | Need Help?? |
But that would match on:
which does not contain an HTML tag. Oh, and it won't match all HTML tags correctly either. Consider for instance: The first one fails to match because your regex requires that if there are double quoted values inside a tag, they must follow each other. And the second fails because your regex doesn't consider single quoted values.
Perl --((8:>*
In Section
Seekers of Perl Wisdom
|
|