Check if a string is common domain name

xiaoxiao2021-03-06  61

'Check a string is not a common domain name

Function Checkdomain (byval Domain As String) AS Boolean

Dim vdomain () as string = domain.split ("."): DIM i as integer

DIM VLASTDOMAIN As String () = "COM, NET, ORG, GOV, CN, INFO, BIZ, Tv, CC, Name" .split (",")

IF vDomain.length> 1 THEN

For i = 0 to vlastdomain.length - 1

IF vDomain (vDomain.length - 1) = VLASTDOMAIN (i) Ten Return True

NEXT

END IF

END FUNCTION

转载请注明原文地址:https://www.9cbs.com/read-112093.html

New Post(0)