Java Email Validate isEmail(final String s)

Here you can find the source of isEmail(final String s)

Description

is Email

License

Open Source License

Declaration

public static boolean isEmail(final String s) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {
    private static Pattern email = Pattern.compile(".+[@].+[\\.].+");

    public static boolean isEmail(final String s) {
        final Matcher m = email.matcher(s);
        return m.matches();
    }//from  w  w w.j a v  a2s.com
}

Related

  1. getSafeMailAddr(String mailAddr)
  2. getSmtpPort(String email)
  3. isEmail(CharSequence email)
  4. isEmail(CharSequence input)
  5. isEmail(final String email)
  6. isEmail(final String text)
  7. isEmail(String correo)
  8. isEmail(String data)
  9. isEmail(String email)