publicstaticbooleanisMobileNo(Stringmobiles){
StringtelRegex="[1][3578]\\d{9}"; if(TextUtils.isEmpty(mobiles)){ returnfalse; }else{ returnmobiles.matches(telRegex); } }
原文链接:https://www.f2er.com/regex/359730.htmlStringtelRegex="[1][3578]\\d{9}"; if(TextUtils.isEmpty(mobiles)){ returnfalse; }else{ returnmobiles.matches(telRegex); } }