web前端面试题(十九)之7. 正则表达式验证邮箱格式? var reg = /^(w)+(.w+)*@(w)+((.w{2,3}){1,3})$/; var email = "yjh@itlike.com"; console.log(reg.test(email)); // true