Android Email String Validate isEmail(String email)

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

Description

is Email

Declaration

public static boolean isEmail(String email) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static boolean isEmail(String email) {
        String str = "^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$";
        Pattern p = Pattern.compile(str);
        Matcher m = p.matcher(email);

        return m.matches();
    }//from www. j ava2  s.c o m
}

Related

  1. isEmail(String s)
  2. isEmail(String str)
  3. isValidEmail(String inputStr)
  4. isEMail(String str)
  5. checkEmail(String email)
  6. isEmail(String email)
  7. isEmail(String email)
  8. validEmail(String email)
  9. checkEmail(String email)