Android Email String Validate isEmail(String str)

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

Description

is Email

Declaration

public static Boolean isEmail(String str) 

Method Source Code

//package com.java2s;

public class Main {

    public static Boolean isEmail(String str) {
        Boolean isEmail = false;//from   www.  j ava  2s.  c  o  m
        String expr = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$";
        if (str.matches(expr)) {
            isEmail = true;
        }
        return isEmail;
    }
}

Related

  1. isEmailFormat(String email)
  2. isValidEmail(CharSequence target)
  3. isValidEmailAddress(String email)
  4. isEmailValid(CharSequence email)
  5. isEmail(String email)
  6. isEmailValid(String email)
  7. checkMail(String email)
  8. isEmail(String s)
  9. isValidEmail(String email)