Here you can find the source of IsValidEmail(String input)
public static Boolean IsValidEmail(String input)
//package com.java2s; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { private static String _RegEmail = "^[.\\-_a-zA-Z0-9]+@([.\\-_a-zA-Z0-9]+\\.)+[a-zA-Z0-9]{2,3}$"; public static Boolean IsValidEmail(String input) { Pattern pattern = Pattern.compile(_RegEmail); Matcher matcher = pattern.matcher(input); return matcher.matches(); }/* w w w . j ava2 s. co m*/ }