if(!Pattern.matches("^1[3-9]\\d{9}$","13802026020")){ System.out.println("请求的手机号格式错误"); }else{ System.out.println("请求的手机号正确"); }