in reply to Find and replace using regex

Also, if what you're doing is parsing an XML file, you should consider using a proper XML parser, which will handle properly all the strange things that can show up in an XML file.