个人随笔
目录
Java工具类:验证手机号格式是否正确
2022-02-23 11:31:16
  1. public static boolean CheckMobilePhoneNum(String phoneNum) {
  2. String regex = "^(1[3-9]\\d{9}$)";
  3. if (phoneNum.length() == 11) {
  4. Pattern p = Pattern.compile(regex);
  5. Matcher m = p.matcher(phoneNum);
  6. if (m.matches()) {
  7. return true;
  8. }
  9. }
  10. return false;
  11. }
 171

啊!这个可能是世界上最丑的留言输入框功能~


当然,也是最丑的留言列表

有疑问发邮件到 : suibibk@qq.com 侵权立删
Copyright : 个人随笔   备案号 : 粤ICP备18099399号-2