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