Here you can find the source of isEmail(String correo)
public static boolean isEmail(String correo)
//package com.java2s; //License from project: Open Source License import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static boolean isEmail(String correo) { Pattern pat = null;/*from w w w. ja va 2s .co m*/ Matcher mat = null; pat = Pattern.compile("^[\\w\\\\\\+]+(\\.[\\w\\\\]+)*@([A-Za-z0-9-]+\\.)+[A-Za-z]{2,4}$"); mat = pat.matcher(correo); if (mat.find()) { return true; } else { return false; } } }