perl -pi -e 's/&#(?!\d+;)/ /g' myfile.xml
This would
1. Find something that has but not digit;
2. replace it with a space.
In reply to Re: Regular Expression to replace & in XML
by FreeBeerReekingMonk
in thread Regular Expression to replace & in XML
by denzil_cactus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |