var reg = /^(w)+(.w+)*@(w)+((.w{2,3}){1,3})$/;
var email = "example@qq.com";
console.log(reg.test(email)); // true