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  . ja v a2  s. c o  m
        return Pattern.matches(EMAIL_REG_EXPRESSION, s);
    }
}

Related

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