in reply to Strip that XML!
If you're parsing XML, then you should really be using XML::Parser (or one of its subsclasses to do it. Any regex-based solution is bound to fail at some point.
Originally posted as a Categorized Answer.