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-Z][\\w\\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\\w\\.-]*[a-zA-Z0-9]\\.[a-zA-Z][a-zA-Z\\.]*[a-zA-Z]$";
        Pattern p = Pattern.compile(strPattern);
        Matcher m = p.matcher(strEmail);
        return m.matches();
    }//from   w w  w . j  av a2s.c  o  m
}

Related

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