数字加字母正则
NSString *regex = @"\\d{0,}([a-z]{1,}\\d{1,}){1,}[a-z]{0,}";
regex = @"((?=.*\\d)(?=.*[a-zA-Z]))[\\da-zA-Z]*";
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regex];
NSString *string1 = @"6e";
NSString *string2 = @"nkasdnkflaks";
NSString *string3 = @"sdfasdfa8u98u98fsdfu09";
BOOL res1 = [predicate evaluateWithObject:string1];
BOOL res2 = [predicate evaluateWithObject:string2];
BOOL res3 = [predicate evaluateWithObject:string3];