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

春天来了,花园里开满了花,有梅花,有迎春花,有山茶花,有丁香花,真是太好看了。
functionchkEmail(email)
onerrorresumenext
dimi,l,pos1,pos2
chkEmail=true
ifisnull(email)thenchkEmail=false:exitfunction
pos1=instr(email,"@")
pos2=instrRev(email,".")
ifnot(pos1>0)ornot(pos2>0)orpos1>pos2then
chkEmail=false
endif
iferr.number<>0thenerr.clear
endfunction

以上就是正则表达式简单的检查输入email是否合法程序。高标准,精细化,零缺陷。更多关于正则表达式简单的检查输入email是否合法程序请关注haodaima.com其它相关文章!

您可能有感兴趣的文章
浅析golang 正则表达式

正则表达式如何解决input框固定输入值得格式(金额,特殊字符)

基于xpath选择器、PyQuery、正则表达式的格式清理工具详解

python中如何使用正则表达式将所有符合条件的字段全部提取出来

javascript正则表达式 限1-2位整数,或者至多含有两位小数的写法