Java Email Validate isEmail(String str)

Here you can find the source of isEmail(String str)

Description

is Email

License

Open Source License

Declaration

public static boolean isEmail(String str) 

Method Source Code

//package com.java2s;

import java.util.regex.Pattern;

public class Main {

    public static boolean isEmail(String str) {
        Pattern pattern = Pattern.compile("^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$");
        return pattern.matcher(str).matches();
    }/*from  w  w w .j ava 2 s .  c om*/
}

Related

  1. isEmail(String email)
  2. isEmail(String emailAddress)
  3. isEmail(String input)
  4. isEmail(String msg)
  5. isEmail(String s)
  6. isEmail(String str)
  7. isEmail(String str)
  8. isEmail(String str)
  9. isEmail(String str)