Remember that you need iOS 4.0 or higher to use this:
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"points:\\\"([^\\\"]*)\\\"" options:0 error:NULL]; NSTextCheckingResult *match = [regex firstMatchInString:apiResponse options:0 range:NSMakeRange(0, [apiResponse length])]; NSString *encodedPoints = [apiResponse substringWithRange:[match rangeAtIndex:1]];
Hope this helps.
Adriano Santangeli Mar 08 2018-12-12T00: 00Z
source share