Here you can find the source of isEmail(String str)
public static Boolean isEmail(String str)
//package com.java2s; public class Main { public static Boolean isEmail(String str) { Boolean isEmail = false;//from www. j ava 2s. c o m String expr = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$"; if (str.matches(expr)) { isEmail = true; } return isEmail; } }