}
//以上集合一起,并兼容14开头的
+ (BOOL)isMobileNumber:(NSString *)mobileNum
{
NSString * phoneRegex = @"^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$";
BOOL isMatch = [mobileNum isMatchedByRegex:phoneRegex];
return isMatch;
}
原文地址:http://blog.csdn.net/u011374880/article/details/42268659