/**
* 判断是否为手机号
*
* @param phoneStr
* @return
*/
public static boolean isPhone(String phoneStr) {
if (TextUtils.isEmpty(phoneStr)) {
return false;
} else {
String replace = phoneStr.replace(" ", "");
return replace.matches("^((1[3-9])\\d{9}$)");
}
}
网友评论