Here you can find the source of isEmail(String email)
public static boolean isEmail(String email)
//package com.java2s; //License from project: Open Source License import java.util.regex.Pattern; public class Main { static Pattern p = Pattern.compile( "^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$", Pattern.CASE_INSENSITIVE); public static boolean isEmail(String email) { return p.matcher(email).matches(); }// w w w . j a v a 2 s .c om }