in reply to Regular expression - parsing and xml string

In general, parsing XML is difficult, and most problems have already been solved by others. You should consider using one of the many CPAN modules, such as XML::Simple or XML::Parser.
  • Comment on Re: Regular expression - parsing and xml string