caipivara
7/6/2015 - 10:00 PM

Android - Valid Email Pattern Match

Android - Valid Email Pattern Match

/**
 * http://stackoverflow.com/a/7882950/273119
 */
public static boolean isValidEmail(CharSequence target) {
    return !TextUtils.isEmpty(target) && android.util.Patterns.EMAIL_ADDRESS.matcher(target).matches();
}