in reply to Regex To remove text between parentheses
s/\([^)]+\)+//g; [download]
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.