iPhone判断手机号码
1 +(BOOL)CheckPhoneNumInput:(NSString *)_text{ 2 NSString *Regex =@"(13[0-9]|14[57]|15[012356789]|18[02356789])\\d{8}"; 3 NSPredicate *mobileTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", Regex]; 4 return [mobileTest evaluateWithObject:_text]; 5 }