in reply to Re: Regex To remove text between parentheses
in thread Regex To remove text between parentheses
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?
|
|---|