tnsay
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
猜你喜欢
  • 2021-11-30
  • 2022-01-02
  • 2021-12-23
  • 2021-12-23
  • 2021-12-23
  • 2021-12-23
相关资源
相似解决方案