public static boolean isMobile(String str) { Pattern p = null; Matcher m = null; boolean b = false; p = Pattern.compile("^[1][3,4,5,8][0-9]{9}$"); // 验证手机号 m = p.matcher(str); b = m.matches(); return b; } 相关文章: 2022-02-01 2021-11-29 2022-01-02 2021-12-23 2021-12-31 2021-12-05 2022-01-28 2021-12-18