s/"(?![^(]*\))/"/g
If you really need to have it balance correctly with escaped or quoted parens, you'll probably want to look at a module (I've heard good things about Text::Balanced and I suspect it could help here, but having never worked with it I'll defer to others).
-dlc
In reply to RE: RegExp Help Needed
by dchetlin
in thread RegExp Help Needed
by morbus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |