Possible Duplicate:
What is the best Java email address validation method?
I need to know if there is any method in java to implement email validation for addresses like
Use this code.
static Pattern emailPattern = Pattern.compile("[a-zA-Z0-9[!#$%&'()*+,/\\-_\\.\"]]+@[a-zA-Z0-9[!#$%&'()*+,/\\-_\"]]+\\.[a-zA-Z0-9[!#$%&'()*+,/\\-_\"\\.]]+");
public static boolean isValidEmail(String email)
{
Matcher m = emailPattern.matcher(email);
return !m.matches();
}