JavaScript正则邮箱验证
RT:
1 var reg = /^[\da-zA-Z]+(?:\.[\da-zA-Z]+|\_[\da-zA-Z]+)*@(?:[a-zA-Z\d]+\.){1,}[a-zA-Z]+$/
2
3 reg.test("fuck.mail@fuckmail.com")
RT:
1 var reg = /^[\da-zA-Z]+(?:\.[\da-zA-Z]+|\_[\da-zA-Z]+)*@(?:[a-zA-Z\d]+\.){1,}[a-zA-Z]+$/
2
3 reg.test("fuck.mail@fuckmail.com")