You might want to look at Death to Dot Star! to why it is getting rid of the whole thing
s/\([^)]+\)//g;(Unless you have nested parenteses, as Hofmator pointed out.) And if you have (), the above won't remove it, unless you change the + to a *.
Also, any reason why you put the contents between the ()'s into $1? Are you going to use it later?
In reply to Re: Re: Regex To remove text between parentheses
by lshatzer
in thread Regex To remove text between parentheses
by beretboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |