List of utility methods to do Email Validate
boolean | validateEmail(String email) validate Email Pattern p = Pattern.compile(".+@.+\\.[a-z]+"); Matcher m = p.matcher(email); boolean matchFound = m.matches(); if (matchFound) { return true; } else { return false; |
boolean | validateEmail(String hex) validate Email Matcher matcher;
Pattern pattern = Pattern.compile(EMAIL_PATTERN);
matcher = pattern.matcher(hex);
return matcher.matches();
|
boolean | validateEmail2(String field) Validates an email. if (field != null) { pattern = Pattern.compile(EMAIL_PATTERN); matcher = pattern.matcher(field.toString()); if (!matcher.matches()) { return false; return true; } else ... |
boolean | validateEmailAddress(String address) validate Email Address Pattern pattern = Pattern.compile(EMAIL_ADDRESS_REG_EXP); Matcher matcher = pattern.matcher(address); if (matcher.matches()) { return true; return false; |
boolean | validEmail(String canidate) Determines if the search string contains a valid Email address return Pattern.matches(EMAIL_RE, canidate);
|
boolean | validEmail(String email) Valid email. Pattern pattern = Pattern.compile(VALID_EMAIL_PATTERN);
Matcher matcher = pattern.matcher(email);
return matcher.find();
|
boolean | validEmail(String p_mail) Validate the email address return validValueByExpression(p_mail, email_Expr);
|
boolean | validEmailAddrWithDataExact(String str) Validate the given string is exact of 'a@b.com{Mr.}{A}'. if (str == null) { return false; if (patternEmailWithDataExact == null) { patternEmailWithDataExact = Pattern.compile(REGEX_EMAIL_WITH_DATA_EXACT); Matcher matcher = patternEmailWithDataExact.matcher(str); return matcher.find(); ... |