Java Email Validate isEmailer(String email)

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

Description

is Emailer

License

LGPL

Declaration

public static boolean isEmailer(String email) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.regex.Pattern;

public class Main {
    private final static Pattern emailer = Pattern.compile("\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*");

    public static boolean isEmailer(String email) {
        if (email == null || email.trim().length() == 0)
            return false;
        return emailer.matcher(email).matches();
    }//from   www  .ja v a  2  s.c o  m
}

Related

  1. isEmail(String value)
  2. isEmail(String value)
  3. isEmailAddress(String input)
  4. isEmailAddressFormat(String address)
  5. isEmailAddressValid(String emailAddress)
  6. isEmailFormatValid(String emailAddress)
  7. isEmailValid(String address)
  8. isEmailValid(String email)
  9. isEmailValid(String email)