Displaying 1 result from an estimated 1 matches for "parethesi".
Did you mean:
parethesis
2009 Aug 25
3
Regular expression to define contents between parentheses
...d in parenthesis, the goal would be to obtain the following new vector:
subvector<-c("something & more", "somethingelse & moretoo")
I tried the following, but this pattern seems to enclose all that is included between the first opened parenthesis and the last closed parethesis, which makes sense, but it's not what I need:
subvector<-gsub("\\((.*)\\)","",myvector
Your help will be very appreciated.
Thank you,
Judith