标签:
public static boolean valMobileNumber(String mobilenumber){
if(StringUtils.isEmpty(mobilenumber)) return false;
Pattern p = null;
Matcher m = null;
boolean b = false;
p = Pattern.compile("^[1][3,4,5,7,8][0-9]{9}$"); // 验证手机号
m = p.matcher(mobilenumber);
b = m.matches();
return b;
}
标签:
原文地址:http://my.oschina.net/u/2274056/blog/482595