源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

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

  • 时间:2022-10-18 11:21 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:正则表达式简单的检查输入email是否合法程序
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
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部