in reply to limiting regular expression greediness?
Try changing the .* to .*?. You might also consider using some of the XML modules on CPAN instead of regexes.
In Section
Seekers of Perl Wisdom
in reply to limiting regular expression greediness?