java正则验证邮箱
//验证email地址
// 字母数字下划线,首位以字母开头6-18位,在不包括@
public static void test5(){
String str = "y_f785@";
Matcher m = Pattern.compile("^[a-zA-Z][\\w_]{5,17}@(163|126|qq)\\.com").matcher(str);
System.out.println(m.matches());
System.out.println(m.group());
}