RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find IP address validation
Expression
^((2[0-5][0-5]|1[\d][\d]|[\d][\d]|[\d])\.){3}(2[0-5][0-5]|1[\d][\d]|[\d][\d]|[\d])$
Description
Validates IP addresses and subnet masks
Matches
192.168.0.1 255.255.255.0
Non-Matches
423.192.168.1
Author Rating: The rating for this expression. Marko Maruna
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: fails to match 10.219.12.3
Name: -
Date: 12/1/2010 1:49:40 PM
Comment:
-


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials