2020-10-26Email 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);