- hello .nihao @abc.com.cn
- 任意字母数字下划线 .任意字母数字下划线 @任意字母数字 .任意字母(2-5位) .任意字母(2-5位)
- \w{3,} (.\w+)* @ [A-z0-9]+ (.[A-z]{2,5}){1,2}
var emaiReg = /^\w{3,}(\.\w+)*@[A-z0-9]+(\.[A-z]{2,5}){1,2}$/;
var email = "abc@123.com";
console.log(emaiReg.test(email));//true