Here you can find the source of isEmailer(String email)
public static boolean isEmailer(String email)
//package com.java2s; //License from project: LGPL import java.util.regex.Pattern; public class Main { private final static Pattern emailer = Pattern.compile("\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*"); public static boolean isEmailer(String email) { if (email == null || email.trim().length() == 0) return false; return emailer.matcher(email).matches(); }//from www .ja v a 2 s.c o m }