Private Function isvaliddo () function isvaliddo ( byval strin as string ) as Boolean
return RegEx. ismatch (strin, " ^ ([a-zA-Z0-9] ([a-zA-Z0-9 \-] {} [a-zA-Z0-9])? \.) + [A-Za-Z] {800000 }$ " )
end function
Private Function isvalidip () Function Isvalidip ( Byval Strin As String ) As Boolean
Return RegEx. ismatch (strin, " ^ (2 [0-5] {2} | 2 [0-4] [0-9] | 1? [0-9] {1, 2}). (2 [0-5] {2} | 2 [0-4] [0-9] | 1? [0-9] {1, 2}). (2 [0-5] {2} | 2 [0-4] [0-9] | 1? [0-9] {1, 2}). (2 [0-5] {2} | 2 [0-4] [0-9] | 1? [0-9] {1, 2}) $ " )
End Function
^ ([A-zA-Z0-9] ([a-zA-Z0-9 \-] {} [a-zA-Z0-9])? \.) + [A-Za-Z] {2, 6} $Will match the domain name such as x--x.com, you will certainly think that he is illegal, in fact, the domain name can be connected with two-Number
Domain Name: X--X.COM
Registrar: mydomain, Inc.
whois server: whois.namesdirect.com
Referral URL: http://www.namesdirect.com
name server: ns1.mydomain. com
name server: ns2.mydomain. com
Status: OK
Updated Date: 03-Jan-2008
creation date: 31-aug-2001
expiration date: 31-aug-2009