Stop now. Processing XML with just regular expressions is destined for failure*. Use a proper parser (e.g. XML::Twig) and have it work on just the text contents of nodes rather than trying to gin up something yourself. You'll be glad you did later when you're not chasing down corner cases when your input drifts n months hence.
(*) Save in very simple cases with very regular input which you can guarantee doesn't vary.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Regular expression to replace xml data
by Fletch
in thread Regular expression to replace xml data
by dalegribble
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |