Java Email Validate IsValidEmail(String input)

Here you can find the source of IsValidEmail(String input)

Description

Is Valid Email

License

Open Source License

Declaration

public static Boolean IsValidEmail(String input) 

Method Source Code


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

public class Main {
    private static String _RegEmail = "^[.\\-_a-zA-Z0-9]+@([.\\-_a-zA-Z0-9]+\\.)+[a-zA-Z0-9]{2,3}$";

    public static Boolean IsValidEmail(String input) {

        Pattern pattern = Pattern.compile(_RegEmail);
        Matcher matcher = pattern.matcher(input);
        return matcher.matches();
    }/* w w  w  .  j  ava2 s. co  m*/
}

Related

  1. isValidEmail(String email)
  2. isValidEmail(String email)
  3. isValidEmail(String email)
  4. isValidEmail(String emailAddress)
  5. isValidEmail(String eMailAddress)
  6. isValidEmailAddr(String str)
  7. isValidEmailAddress(String addr)
  8. isValidEmailAddress(String aEmailAddress)
  9. isValidEmailAddress(String email)