Android Email String Validate isEmail(String strEmail)

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

Description

is Email

Declaration

public static boolean isEmail(String strEmail) 

Method Source Code

//package com.java2s;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {
    public static boolean isEmail(String strEmail) {
        String strPattern = "[a-zA-Z0-9_-]+@\\w+\\.[a-z]+(\\.[a-z]+)*";
        Pattern p = Pattern.compile(strPattern);
        Matcher m = p.matcher(strEmail);
        return m.matches();
    }//from  w w  w. j  a va 2  s.co m
}

Related

  1. isEmail(String email)
  2. isEmail(String email)
  3. validEmail(String email)
  4. checkEmail(String email)
  5. isEmail(String str)
  6. isEmail(String string)
  7. isEmail(String strEmail)
  8. getNameFromEmail(String email)
  9. isLegalEmail(String email)