Hi
Would anyone know what the pattern is to return all bracketed text from a string
For example
"I (me) feel (think) that sometimes (that is most (high percentage) of the time) I don't like Regular Expressions"
should return the three matches (me), (think), (that is most (high percentage)
with the pattern "\(.*\)", but it only returns
(me) feel (think) that sometimes (that is most (high percentage) of the time)
I can see why it is doing this, but how do I get it to use the brackets properly?
Would anyone know what the pattern is to return all bracketed text from a string
For example
"I (me) feel (think) that sometimes (that is most (high percentage) of the time) I don't like Regular Expressions"
should return the three matches (me), (think), (that is most (high percentage)
with the pattern "\(.*\)", but it only returns
(me) feel (think) that sometimes (that is most (high percentage) of the time)
I can see why it is doing this, but how do I get it to use the brackets properly?