in reply to Re: regex pattern matches
in thread regex pattern matches

"Use an XML parser" Is the correct answer. Which one is up to you. I personally recommend mirod's XML::Twig.