验证邮箱



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);


原文地址:https://www.cnblogs.com/zq1003/p/13877011.html