最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp检测email 的合法性程序
时间:2022-06-30 09:14:34 编辑:袖梨 来源:一聚教程网
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
相关文章
- 最新正规全球交易所2025数字资产交易榜单-最安全虚拟币交易app币安推荐 06-16
- 《潮汐守望者》群狼之王卢迦鲁神器选择有什么 06-16
- 《晶核》团本奖励领取如何 06-16
- 热门2025币圈十大全球交易所加密货币排行-最省钱现货交易平台币安推荐 06-16
- 《艾塔纪元》武器升级怎么样 06-16
- DYθR 创始人深度剖析:解密代币价格涨跌背后的群体行为密码 06-16