验证邮箱



2020-10-26
Email email;
String regex = "[A-Za-z0-9]+([_\\.][A-Za-z0-9]+)*@([A-Za-z0-9\\-]+\\.)+[A-Za-z]{2,6}";
Pattern pattern;
Matcher matcher;
pattern = Pattern.compile(regex);
matcher = pattern.matcher(email);


posted @ 2020-10-26 10:04  未确定  阅读(70)  评论(0编辑  收藏  举报