public boolean eMailValidation(String emailstring) {
emailPattern = Pattern.compile("[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}" + ")+");
emailMatcher = emailPattern.matcher(emailstring);
return emailMatcher.matches();
}
No comments:
Post a Comment