Java Email Validate checkEmail(String email)

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

Description

check Email

License

Open Source License

Declaration

public static boolean checkEmail(String email) 

Method Source Code


//package com.java2s;

import java.util.regex.Pattern;

public class Main {

    public static boolean checkEmail(String email) {
        String regex = "\\w+@\\w+\\.[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+)?";
        return Pattern.matches(regex, email);
    }//from   ww  w  .  ja  v  a2s . co m
}

Related

  1. baseAddress(String email)
  2. checkEmail(String email)
  3. checkEmail(String email)
  4. checkEmail(String email)
  5. checkEmail(String mail)
  6. checkEmailAddress(String address)
  7. checkEmailAddressNoEx(String inEmailAddress)
  8. checkEmailPattern(String email)