public static boolean verifyYYYYMM(String date){
        String regex = "^(20|19){1}[0-9]{2}(((0){1}[1-9]{1})|((1){1}(0|1|2){1}))$";
        boolean matches =  Pattern.matches(regex, date);
        System.out.println(matches);
        return matches;
    }

相关文章:

  • 2021-12-27
  • 2021-11-19
  • 2022-02-01
  • 2021-11-19
  • 2021-12-08
  • 2022-12-23
猜你喜欢
  • 2022-02-10
  • 2021-12-20
  • 2021-12-27
  • 2022-12-23
  • 2021-12-27
相关资源
相似解决方案