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

booleanisEmail(String str)
is Email
return isMatcher(str, EMAIL_PATTERN);
booleanisEmail(String str)
is Email
String regex = "^([\\w-\\.]+)@((";
return match(regex, str);
booleanisEmail(String str)
is Email
return regex(str, REGEX_EMAIL);
booleanisEmail(String str)
Validasi alamat email
return Pattern.matches("^([\\w-]+)@([\\w-]+\\.)+[A-Za-z]{2,3}$", str);
booleanisEmail(String str)
is Email
boolean result = validByRegex(
        "^([a-z0-9A-Z]+[-|_|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$", str);
return result;
booleanisEmail(String str, boolean nullCheck)
is Email
String checkPattern = "^([A-Za-z0-9_\\-\\.'])+@([A-Za-z0-9_\\-\\.])+\\.([A-Za-z]{2,6})$";
if (nullCheck == false || isRequired(str)) {
    return isRegex(str, checkPattern, nullCheck);
} else {
    return false;
booleanisEmail(String string)
is Email
return match(PATTERN_EMAIL, string);
booleanisEmail(String string)
Returns true if the String is a valid email address.
return emailPattern.matcher(string).matches();
booleanisEmail(String text)
is Email
Matcher matcher = EMAIL_REG.matcher(text);
if (matcher.find()) {
    return true;
return false;
booleanisEmail(String val)
is Email
boolean result = false;
Pattern p = Pattern.compile(EMAIL_REGEXP);
Matcher m = p.matcher(val);
try {
    return m.matches();
} catch (Exception e) {
    e.printStackTrace();
return result;