Extract values between parenthesis from NSString

Posted by Travis on Stack Overflow See other posts from Stack Overflow or by Travis
Published on 2010-03-28T23:12:54Z Indexed on 2010/03/29 0:13 UTC
Read the original article Hit count: 622

Filed under:
|
|

I have an NSString that will be something like "xxxx (yyyyy)" where x and y can be any character. I'd like to extract just the y from inside the parenthesis. I managed to extract the x using a NSScanner but I haven't figured out the proper way to extract out the y.

© Stack Overflow or respective owner

Related posts about nsstring

Related posts about objective-c