when i try to match regular expression for Data . sometime application crashes with error
here is error description
'Can't do regex matching, reason: Can't open pattern U_REGEX_INVALID_RANGE (string Ertyu, pattern [a-Z], case 0, canon 0)'
here is my code
- (BOOL)isValidateString:(NSString *)inString ForRE:(NSString *)inRE { BOOL isValidate=NO; NSPredicate *thePredicate= [NSPredicate predicateWithFormat:@"SELF MATCHES %@", inRE]; isValidate= [thePredicate evaluateWithObject:inString]; return isValidate;
}
and in this method RE is getting from server.