devxlogo

IsValidIP – Validating an IP address

IsValidIP – Validating an IP address

' Validate an IP address' Example:'   MessageBox.Show(IsValidIP("123.14.0.255")) ' => True'   MessageBox.Show(IsValidIP("256.14.0.255")) ' => FalseFunction IsValidIP(ByVal ipAddress As String) As Boolean    Return System.Text.RegularExpressions.Regex.IsMatch(ipAddress, _        "^(25[0-5]|2[0-4]d|[0-1]?d?d)(.(25[0-5]|2[0-4]d|[0-1]?d?d)){3}$")End Function

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist