Don't do that. As a general thing correctly parsing and editing XML is tricky. Use a module such as XML::Twig to do the hard work for you.
If you'd provided sample code, input data and expected output most likely someone would show you how to use an appropriate module to do the job.
In reply to Re: Perl RE; how to capture, and replace based on a block?
by GrandFather
in thread Perl RE; how to capture, and replace based on a block?
by taint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |