NSString *regex4 =@"^(?=.*[\\W\\_]+.*)(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{1,10}$";
NSPredicate *pred4 = [NSPredicatepredicateWithFormat:@"SELF MATCHES %@", regex4];
BOOL isMatch4 = [pred4 evaluateWithObject:string];
return isMatch4;
NSString *regex4 =@"^(?=.*[\\W\\_]+.*)(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{1,10}$";
NSPredicate *pred4 = [NSPredicatepredicateWithFormat:@"SELF MATCHES %@", regex4];
BOOL isMatch4 = [pred4 evaluateWithObject:string];
return isMatch4;