As mentioned earlier, email verification can be processed by js first, and then by asp and php. Let's take a look at a new example of asp mail address verification regular expression.
Just nowEmail VerificationYou can use js for processing first, and then use the asp tutorial and php tutorial. Let's take a look at a new instance of asp mail address verification regular expression.
Method 1
Public Function ChkMail (ByVal Email)
Dim Rep, Pmail: ChkMail = True: Set Rep = New RegExp
Rep. pattern = "([. a-zA-Z0-9 _-]) {} @ ([a-zA-Z0-9 }(. ([a-zA-Z0-9]) {2,}) {} $"
Pmail = Rep. Test (Email): Set Rep = Nothing
If Not Pmail Then ChkMail = False
End Function
Email address verification 1
<%
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
%>
Method 3
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
%>
Let's take a look at how to verify the use of instance 1.
If ChkMail (ls535427@bKjia.c0m) = True Then
Response. Write "The format is correct"
Else
Response. Write "Incorrect format"
End If