Answers for "mobile number validation in android"

0

mobile number validation in android

private boolean isValidMail(String email) {

    String EMAIL_STRING = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@"
            + "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";

    return Pattern.compile(EMAIL_STRING).matcher(email).matches();

}
Posted by: Guest on February-24-2021

Code answers related to "mobile number validation in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language