Java Email Validate isEmailAddressValid(String emailAddress)

Here you can find the source of isEmailAddressValid(String emailAddress)

Description

is Email Address Valid

License

Open Source License

Declaration

public static boolean isEmailAddressValid(String emailAddress) 

Method Source Code

//package com.java2s;
/*/*from   w ww.ja v  a  2  s .co m*/
 * Copyright (c) UChicago Argonne, LLC. All rights reserved.
 * See LICENSE file.
 */

import java.util.regex.Pattern;

public class Main {
    private static final Pattern emailPattern = Pattern.compile(
            "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$");

    public static boolean isEmailAddressValid(String emailAddress) {
        return emailPattern.matcher(emailAddress).matches();
    }
}

Related

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