String email = form.getEmail();

if(!email.matches("^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\\.[a-zA-Z0-9_-]{2,3}){1,2})$")){

(邮箱错误)

}

相关文章:

  • 2022-12-23
  • 2021-06-03
  • 2021-12-28
  • 2021-07-15
  • 2021-07-11
  • 2021-09-06
  • 2021-10-27
猜你喜欢
  • 2021-12-08
  • 2021-12-25
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2021-06-24
  • 2021-12-16
相关资源
相似解决方案