标签:
代码如下:
<script>
var str = ‘xxxx@126.com;123234234@qq.com;xxxxx@xxxxx.con.cn‘;
var reg = /^((([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6}\;))*(([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})))$/;
if(reg.test(str)){
alert(1);
}else{
alert(0);
}
</script>
标签:
原文地址:http://www.cnblogs.com/zhja/p/5001413.html