in reply to
How to avoid the greedy matching failures?.
This looks a lot like XML, so perhaps you want to use one of the prewritten XML libraries, such XML::Simple, XML::LibXML and stuff, which are all on
cpan
Comment on
Re: How to avoid the greedy matching failures?.
In Section
Seekers of Perl Wisdom