in reply to
Excluding groups of characters in regular expressions
That kind of thing is pretty hard with regexes so people usually recommend using a real parser like
HTML::Parser
Comment on
Re: Excluding groups of characters in regular expressions
In Section
Seekers of Perl Wisdom