I’m trying to learn Regular Expressions but I can’t understand how to set this one up correctly as an NSRegularExpression. I need to get the contents of any parentheses in a string.
So:
Belmont (O’Hare Branch) (Forest Pk-bound)
would give me:
‘O’Hare Branch’ and ‘Forest Pk-bound’
I would really appreciate a commented example.
Thank you!
\(.*?\)will give you everything in between brackets. Sorry but I have no clue how to do it in a NSRegularExpression. You either have to wait for a IOS dev to come along or figure it our for yourself.