Android Email String Validate isEmail(String s)

Here you can find the source of isEmail(String s)

Description

is Email

Declaration

public static boolean isEmail(String s) 

Method Source Code

//package com.java2s;

import java.util.regex.Pattern;

public class Main {
    public static final String EMAIL_REG_EXPRESSION = "\\w+(\\.\\w+)*@\\w+(\\.\\w+)+";

    public static boolean isEmail(String s) {
        if (s == null) {
            return true;
        }//ww w. j a  v  a2 s  . com
        return Pattern.matches(EMAIL_REG_EXPRESSION, s);
    }
}

Related

  1. isEmail(String email)
  2. isEmailFormat(String email)
  3. isEmail(String s)
  4. isEmail(String str)
  5. isValidEmail(String inputStr)