asp regexp的方法测email

| |
[不指定 2007/08/20 17:32 | by Else ]
Function CheckEmail(semail)
  Set objRegExp = New RegExp
  searchStr = "^[\w-\.]{1,}\@([\da-zA-Z-]{1,}\.){1,}[\da-zA-Z-]{2,3}$"
  objRegExp.Pattern = searchStr
  objRegExp.IgnoreCase = true
  CheckEmail = objRegExp.Test(sEmail)
End Function

返回值:false/true

作者:Else 's Blog
地址:http://www.aixq.com/post/808/
版权所有。转载时必须链接形式注明作者和原始出处及本声明!
  • 中查看更多“asp regexp的方法测email”相关内容
  • 中查看更多“asp regexp的方法测email”相关内容
  • 中查看更多“asp regexp的方法测email”相关内容
  • 中查看更多“asp regexp的方法测email”相关内容
  • 中查看更多“asp regexp的方法测email”相关内容
  • 中查看更多“asp regexp的方法测email”相关内容

  • 最后编辑: Else 编辑于2008/03/19 11:09
    Tags:
    代码 程序 编程 | 评论(1) | 引用(0) | 阅读(3632)
    Else Email Homepage
    2008/03/19 10:07
    這個還是好用,支持一下
    在來一個ajax的

    function checkedsemail()
    {
      //加载頁面
      //$("#information").load(myurl);
      
      var email = "<%=(rs.Fields.Item("email").Value)%>";
      $.ajax({
          beforeSend:function(){$("#msg").html("正在加載");},
          type: "GET",
          //timeout:500,
          url:"?email="+email,
          success: function(comm){
          $("#msg").html(comm);
          
          if (comm=="Email格式錯誤")
          {
            document.form1.send.disabled="disabled";
          }
          $("#msg2").html(comm);
        },
        error:function(err){("#msg").html(err);}
      });

    }
    分页: 1/1 第一页 1 最后页
    发表评论
    表情
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    打开HTML
    打开UBB
    打开表情
    隐藏
    昵称   密码   游客无需密码
    网址   电邮   [注册]
                   

    验证码 不区分大小写