8
Possible Duplicate:
Remove text inside brackets, parens, and/or braces
I would like to replace the parenthesis and the text between parenthesis in a large text file.
Example input (content in the text file):
Keep me (Remove Me 1). Again keep me (Remove Me 2). Again again keep me (Remove Me 3).
Output (content in a new text file):
Keep me. Again keep me. Again again keep me.
Is it possible to do this in R (say using grep)?