Java mobile phone number regular

public static boolean isChinaMobile(String str) {
	    if(isNotBlank(str) && str.length() == 11) {
            String regExp = "^((13[0-9])|(14[5-9])|(15([0-3]|[5-9]))|(16[5|6])|(17[0135678])|(18[0-9])|(19[8-9]))\\\\d{8}$";
	        Pattern p = Pattern.compile(regExp);
	        Matcher matcher = p.matcher(str);
	        boolean isMatch = matcher.matches();
	        if (isMatch) {
	            return true;
            }
        }
        return false;
    }

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325223389&siteId=291194637
Recommended