No, it doesn't handle even your first case of nesting correctly. My preference is to use: s#\([^()]*\)##g and repeat if you need to worry about nested parens: 0 while s#\([^()]*\)##g; I really hate complicated regexes.
- tye (but my friends call me "Tye")In reply to (tye)Re: Regex To remove text between parentheses
by tye
in thread Regex To remove text between parentheses
by beretboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |