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 ext
Easiest way would be to use RegExKit:
http://regexkit.sourceforge.net/
Then you'd do something like:
[@"xxxx(yyyyy)" getCapturesWithRegexAndReferences:@"\\((.*)\\)",@"$1", &extractedString,nil];
and extractedString would contain whatever was in parenthesis.