Without seeing the code and possibly even the data sample, we can't help you much. But the general advice is: don't use regular expressions to process XML and HTML, use parsers (e.g. XML::LibXML).
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Comment on Re: How to compare the data of two files (.xml and .html) using perl(regex)?