Your data looks like it's XML, so if it is you might find it easier to use an XML parser. A parser will handle any non significant whitespace or formatting changes & you can focus on only what's important to you.
You could try XML::Simple to read the file into a hash and then modify the hash.
Just a thought :) HTH
In reply to Re: Search and replace query
by RichardK
in thread Search and replace query
by heeru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |