最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp 验证邮箱地址
时间:2022-06-30 11:32:46 编辑:袖梨 来源:一聚教程网
function IsValidEmail(email)
dim names, name, i, c
IsValidEmail = true
names = Split(email, "@")
if UBound(names) <> 1 then
IsValidEmail = false
exit function
end if
for each name in names
if Len(name) <= 0 then
IsValidEmail = false
exit function
end if
for i = 1 to Len(name)
c = Lcase(Mid(name, i, 1))
if InStr("abcdefghijklmnopqrstuvwxyz_-.", c) <= 0 and not IsNumeric(c) then
IsValidEmail = false
exit function
end if
next
if Left(name, 1) = "." or Right(name, 1) = "." then
IsValidEmail = false
exit function
end if
next
if InStr(names(1), ".") <= 0 then
IsValidEmail = false
exit function
end if
i = Len(names(1)) - InStrRev(names(1), ".")
if i <> 2 and i <> 3 then
IsValidEmail = false
exit function
end if
if InStr(email, "..") > 0 then
IsValidEmail = false
end if
end function
相关文章
- yy漫画下拉式极速下载入口-安卓版2025最新官方下载入口 12-13
- 漫蛙2漫画官方页面-免费漫画下载入口 12-13
- 迅雷浏览器手机版apk高速下载-迅雷浏览器安卓最新版极速安装 12-13
- Gmail谷歌邮箱网页版登录下载入口 12-13
- 土豪漫画官方正版无广告APP下载-土豪漫画手机版免费畅读海量漫画 12-13
- 阿里云网页版官网直达入口-一键进入阿里云网页版 12-13