ASP中用正则表达式判断邮箱格式
2010-07-09 11:57
246 查看
<%
set re=new regexp
re.ignorecase=true
re.global=true
email=request.form("email")
re.pattern="^/w+((-/w+)|(/./w+))*/@[A-Za-z0-9]+((/.|-)[A-Za-z0-9]+)*/.[A-Za-z0-9]+$"
if re.test(email)=files then
response.write("<script>alert('邮箱格式错误');history.back();</script>")
response.end
end if
%>
set re=new regexp
re.ignorecase=true
re.global=true
email=request.form("email")
re.pattern="^/w+((-/w+)|(/./w+))*/@[A-Za-z0-9]+((/.|-)[A-Za-z0-9]+)*/.[A-Za-z0-9]+$"
if re.test(email)=files then
response.write("<script>alert('邮箱格式错误');history.back();</script>")
response.end
end if
%>
相关文章推荐
- Java中正则表达式的使用以及android邮箱格式判断
- asp.net中验证邮箱格式的正则表达式 去前后空格
- android 正则表达式 判断邮箱格式是否正确
- iOS开发正则表达式 判断手机号码,邮箱格式是否正确
- C#/asp.net 正则表达式 判断邮件格式- -判断是否为数字
- ORACLE中使用SQL的正则表达式判断邮箱格式
- JS正则表达式判断邮箱格式是否正确
- asp 下用正则表达式检测邮箱格式的函数
- ASP用正则表达式验证邮箱是否格式正确
- 正则表达式判断邮箱格式是否正确
- iOS 正则表达式判断邮箱格式,手机号码
- iOS开发笔记:实现对手机号、邮箱输入格式的判断(正则表达式)
- 用正则表达式搭配JS判断邮件/邮箱地址格式
- 正则表达式 判断邮箱格式
- 注册时判断邮箱和密码格式的正则表达式
- ios正则表达式判断邮箱格式是否正确
- Java通过正则表达式判断邮箱格式
- jquery 正则表达式判断是否为正确邮箱格式
- python 正则表达式判断邮箱格式是否正确
- asp 下用正则表达式检测邮箱格式的函数