This might be what you're after to escape (not negate) the characters-
perl -MHTML::Entities -le 'print encode_entities(shift)' '"><' "><
HTML::Entities is tunable so you can set it to only escape exactly what you want.
In reply to Re: REGEX negate XML tags
by Your Mother
in thread REGEX negate XML tags
by kcvenkat123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |