<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="ProgId" content="VisualStudio.HTML">
<meta name="Originator" content="Microsoft Visual Studio .NET 7.1">
<script id=clientEventHandlersJS language=javascript>
function vail()
{
//var re=new RegExp("^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$");
var re=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
if(re.test(Text1.value))
{
alert("mail ok");
}
else
{
alert("mail error");
}
}
</script>
</head>
<body>
<FONT face="宋体"><INPUT id="Text1" type="text" name="Text1"><INPUT id="Button1" type="button" value="Button" name="Button1" onclick="vail()"></FONT>
</body>
</html>验证邮箱格式
去 www.ibook8.com  看看有没有这样的书