Android 手机号码验证的方法

/**spa

* 手机号码的判断.net

* @param mobilesget

* @return it

*/class

public static boolean IsValidMobileNo(String mobiles)mobile

{static

Pattern p = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$");  co

 

Matcher m = p.matcher(mobiles);  return

return m.matches();  referer

}

相关文章
相关标签/搜索