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

-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)