Java Email Validate isValidEmailAddress(String email)

Here you can find the source of isValidEmailAddress(String email)

Description

Check if given email is a valid email

License

Apache License

Parameter

Parameter Description
email a parameter

Declaration

public static boolean isValidEmailAddress(String email) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.regex.Pattern;

public class Main {
    public static Pattern EMAIL_REGEX_PATTERN = Pattern.compile("\\b[\\w.%-]+@[-.\\w]+\\.[A-Za-z]{2,4}\\b",
            Pattern.CASE_INSENSITIVE);

    /**/*from   w  w w  .j  a  v  a 2s.com*/
     * Check if given email is a valid email
     * @param email
     * @return
     */
    public static boolean isValidEmailAddress(String email) {
        return EMAIL_REGEX_PATTERN.matcher(email).matches();
    }
}

Related

  1. IsValidEmail(String input)
  2. isValidEmailAddr(String str)
  3. isValidEmailAddress(String addr)
  4. isValidEmailAddress(String aEmailAddress)
  5. isValidEmailAddress(String email)
  6. isValidEmailAddress(String email)
  7. isValidEmailAddress(String email)
  8. isValidEmailAddress(String email)
  9. isValidEmailAddress(String emailAddress)