<span style="font-size:18px;">public static boolean isEmail(String email){
String str="^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\\.([a-zA-Z0-9_-])+)+$";
Pattern p = Pattern.compile(str);
Matcher m = p.matcher(email);
return m.matches();
}</span>
这个字符串是判断字符串是否为邮箱地址的正则表达式。