Android Email String Validate checkEmail(String email)

Here you can find the source of checkEmail(String email)

Description

check Email

Declaration

public static boolean checkEmail(String email) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static boolean checkEmail(String email) {

        Pattern pattern = Pattern
                .compile("^\\w+([-.]\\w+)*@\\w+([-]\\w+)*\\.(\\w+([-]\\w+)*\\.)*[a-z]{2,3}$");
        Matcher matcher = pattern.matcher(email);
        if (matcher.matches()) {
            return true;
        }/*  w  w w. ja  v  a2  s  .c o  m*/
        return false;
    }
}

Related

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