in reply to Re^4: Problem with capturing all matches with regex
in thread Problem with capturing all matches with regex
At that point (three pages of parsing regexps), I think you are well into the territory where you should use a grammar engine. For instance, Parse-RecDescent, or my preferred, Marpa-R2
Good Day,
Dean
In Section
Seekers of Perl Wisdom