It appears you are trying to use perl code to modify perl code. This is not usually a safe idea (unless you really really know what you are doing). The Perl parser is very complex, and will account for more things than you are going to want to deal with in a regex.
Actually I'm grepping it in BBEdit's Find and Replace function. Will not be using it in Perl.
In reply to Re^2: Regex to strip, keep, or add—depending
by bradcathey
in thread Regex to strip, keep, or add—depending
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |