Java Utililty Methods Email Validate

List of utility methods to do Email Validate

Description

The list of methods to do Email Validate are organized into topic(s).

Method

booleanisValidEmail(String email)
is Valid Email
if (email != null) {
    return EMAIL_PATTERN.matcher(email.trim().toLowerCase()).matches();
return true;
booleanisValidEmail(String email)
Validate if the email is valid.
String check = "[a-zA-Z0-9\\+\\.\\_\\%\\-\\+]{1,256}" + "\\@" + "[a-zA-Z0-9][a-zA-Z0-9\\-]{0,64}" + "("
        + "\\." + "[a-zA-Z0-9][a-zA-Z0-9\\-]{0,25}" + ")+";
Pattern pattern = Pattern.compile(check);
Matcher matcher = pattern.matcher(email);
return matcher.matches();
booleanisValidEmail(String email)
Validate if the given value is a valid Email address.
if (email == null) {
    return false;
Pattern p = Pattern.compile(".+@.+\\.[a-z]+");
Matcher m = p.matcher(email);
return m.matches();
booleanisValidEmail(String email)
Check whether the argument in parameter is a valid email address.
return rfc2822.matcher(email).matches();
booleanisValidEmail(String email)
To check the passed email is valid or not.
final boolean isValidEmail = VALID_EMAIL_REGEX_PATTERN.matcher(email).matches();
if (!isValidEmail) {
    System.out.println("Invalid email : " + email);
return isValidEmail;
booleanisValidEmail(String emailAddress)
This method is used to test whether a string is a valid email address or not
if (emailAddress == null) {
    return false;
Pattern p = Pattern.compile(EMAIL_REGULAR_EXPRESSION);
Matcher m = p.matcher(emailAddress);
return m.matches();
booleanisValidEmail(String eMailAddress)
Returns true if a valid email address is passed.
Pattern pattern = Pattern.compile(VALID_EMAIL_EXPRESSION);
Matcher matcher = pattern.matcher(VALID_EMAIL_EXPRESSION);
return matcher.find();
BooleanIsValidEmail(String input)
Is Valid Email
Pattern pattern = Pattern.compile(_RegEmail);
Matcher matcher = pattern.matcher(input);
return matcher.matches();
booleanisValidEmailAddr(String str)
Returns true iff str is a valid email address.
return str != null && VALID_EMAIL_ADDRESS.matcher(str).matches();
booleanisValidEmailAddress(String addr)
is Valid Email Address
if (addr == null)
    return false;
addr = addr.trim();
if (addr.length() == 0)
    return false;
Matcher matcher = basicAddressPattern.matcher(addr);
if (!matcher.matches())
    return false;
...