List of utility methods to do Email Validate
boolean | isEmail(String str) is Email return isMatcher(str, EMAIL_PATTERN);
|
boolean | isEmail(String str) is Email String regex = "^([\\w-\\.]+)@(("; return match(regex, str); |
boolean | isEmail(String str) is Email return regex(str, REGEX_EMAIL);
|
boolean | isEmail(String str) Validasi alamat email return Pattern.matches("^([\\w-]+)@([\\w-]+\\.)+[A-Za-z]{2,3}$", str); |
boolean | isEmail(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; |
boolean | isEmail(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; |
boolean | isEmail(String string) is Email return match(PATTERN_EMAIL, string);
|
boolean | isEmail(String string) Returns true if the String is a valid email address. return emailPattern.matcher(string).matches();
|
boolean | isEmail(String text) is Email Matcher matcher = EMAIL_REG.matcher(text); if (matcher.find()) { return true; return false; |
boolean | isEmail(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; |