Javascript 正则验证带 + 号的邮箱地址

很多邮箱地址是可以加上 + 加号为同一个邮箱地址。

比如 Gmail。

如果需要验证带 + 号的邮箱,如下:

   str = "65485+55@gmail.com";
        document.write(isEmail(str));
        function isEmail(str){
            var reg = /^([a-zA-Z0-9+_-])+@([a-zA-Z_-])+(.[a-zA-Z0-9_-])+/;
            return reg.test(str);
        }

原文地址:https://www.cnblogs.com/F4NNIU/p/8418209.html