Try parsing the XML instead, using one of the XML modules at CPAN. RegExps don't work too well with hierarchical data formats.
Alexander
In reply to Re: regex - need first child of parent
by afoken
in thread regex - need first child of parent
by kdolan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |