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("^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$");
        Matcher matcher = pattern.matcher(email);
        return matcher.matches();
    }// ww  w  .  jav  a  2  s.c  om
}

Related

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