网络编程 
首页 > 网络编程 > 浏览文章

正则表达式简单的检查输入email是否合法程序

(编辑:jimmy 日期: 2024/9/23 浏览:3 次 )
function chkEmail(email)
on error resume next
dim i,l,pos1,pos2
chkEmail=true
if isnull(email) then chkEmail=false:exit function 
pos1= instr(email,"@")
pos2=instrRev(email,".")
if not(pos1>0) or not (pos2>0) or pos1>pos2 then 
chkEmail=false
end if
if err.number<>0 then err.clear
end function
上一篇:VBscript 的正则表达式 字符串匹配
下一篇:正则表达式检查来访IP是否合法的实际应用
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网 SiteMap