Here you can find the source of checkEmail(String email)
public static boolean checkEmail(String email)
//package com.java2s; //License from project: Open Source License import java.util.regex.Pattern; public class Main { public static boolean checkEmail(String email) { Pattern rfc2822 = Pattern.compile( "^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"); return rfc2822.matcher(email).matches(); }/*from w ww .j ava2s . com*/ }