Android Email String Validate isEMail(String str)

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

Description

is E Mail

Declaration

public static boolean isEMail(String str) 

Method Source Code

//package com.java2s;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {
    public static boolean isEMail(String str) {
        Pattern pattern = Pattern
                .compile("\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*");
        Matcher isEMail = pattern.matcher(str);
        if (!isEMail.matches()) {
            return false;
        }/*w w  w  .ja  v  a 2s . c  o m*/
        return true;
    }
}

Related

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