|
|
@@ -64,9 +64,12 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
|
|
return false;
|
|
|
}
|
|
|
private static Pattern CONTACT_MOBILE=Pattern.compile("^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$");
|
|
|
+ private static Pattern FIXED_MOBILE=Pattern.compile("\\d{3}-\\d{8}|\\d{4}-\\d{7}");
|
|
|
public static boolean isContactMobile(String str){
|
|
|
if (CONTACT_MOBILE.matcher(str).find()){
|
|
|
return true;
|
|
|
+ }else if (FIXED_MOBILE.matcher(str).find()){
|
|
|
+ return true;
|
|
|
}
|
|
|
return false;
|
|
|
}
|