vbs IP 验证 正则表达式
更新:HHH   时间:2023-1-7


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

返回软件技术教程...