import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class EmailReg {
public static void main(String[] args) {
// TODO Auto-generated method stub
String str = "2284320975@qq.com";
String regEx = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$";
Pattern pattern = Pattern.compile(regEx);
Matcher matcher = pattern.matcher(str);
boolean rs = matcher.matches();
System.out.println(rs);
}
}