is Valid Email by android.util.Patterns.EMAIL_ADDRESS - Android java.util.regex

Android examples for java.util.regex:Email Pattern

Description

is Valid Email by android.util.Patterns.EMAIL_ADDRESS

Demo Code


public class Main{

    public final static boolean isValidEmail(CharSequence target) {
        if (target == null) {
            return false;
        } else {/*from w w  w .  ja  v a2  s  . c  om*/
            return android.util.Patterns.EMAIL_ADDRESS.matcher(target)
                    .matches();
        }
    }

}

Related Tutorials