久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      asp email郵箱地址驗證正則表達(dá)式

      上篇文章我們用字符串查找的方法實現(xiàn)了asp email郵箱地址的驗證,有可能比較喜歡正則表達(dá)式的朋友,這里也給出相應(yīng)的代碼。
      方法一

      復(fù)制代碼 代碼如下:
      Public Function ChkMail(ByVal Email)
      Dim Rep,Pmail : ChkMail = True : Set Rep = New RegExp
      Rep.Pattern = “([.a-zA-Z0-9_-]){2,10}@([a-zA-Z0-9_-]){2,10}(.([a-zA-Z0-9]){2,}){1,4}$”
      Pmail = Rep.Test(Email) : Set Rep = Nothing
      If Not Pmail Then ChkMail = False
      End Function

      郵箱地址驗證二

      復(fù)制代碼 代碼如下:
      <%
      Function isemail(strng)
      isemail = false
      Dim regEx, Match
      Set regEx = New RegExp
      regEx.Pattern = “^w+((-w+)|(.w+))*@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+)*.[A-Za-z0-9]+$”
      regEx.IgnoreCase = True
      Set Match = regEx.Execute(strng)
      if match.count then isemail= true
      End Function
      %>

      方法三

      復(fù)制代碼 代碼如下:
      Public Function IsEmail(ByVal PString)
      Dim Plt,Pgt : Plt = False : Pgt = False
      For x = 2 To Len(PString) – 1
      If Mid(PString,x,1) = “@” Then Plt = True
      If Mid(PString,x,1) = “.” And Plt = True Then Pgt = True
      Next
      If Plt = True And Pgt = True Then
      IsEmail = True
      Else
      IsEmail = False
      End if
      End Function
      %>

      我們來看看驗證一的實例使用方法

      復(fù)制代碼 代碼如下:
      If ChkMail(admin@jb51.net) = True Then
      Response.Write “格式正確”
      Else
      Response.Write “格式有誤”
      End If

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號