msgbox check_ip("1.1.1.1")
Function check_ip(ip)
Dim regEx
set regEx = new regExp
regEx.pattern = "^(([01]?[/d]{1,2})|(2[0-4][/d])|(25[0-5]))(/.(([01]?[/d]{1,2})|(2[0-4][/d])|(25[0-5]))){3}$"
check_ip = regEx.test(ip)
End Function
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/191583.html