in reply to regex - need first child of parent
Try parsing the XML instead, using one of the XML modules at CPAN. RegExps don't work too well with hierarchical data formats.
Alexander