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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find IP address
Expression
^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$
Description
This regular expression validates an IP address within the range of 1.0.0.0 to 255.255.255.255
Matches
128.115.12.255, 227.12.14.87, 14.23.120.8
Non-Matches
111.56.045.78, 221.34.7.8.20, 75.45.301.14
Author Rating: The rating for this expression. Arjun Jaiswal
Source AJ
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: Begin with zero?
Name: Veli
Date: 9/12/2013 7:22:02 AM
Comment:
0.0.0.0 ?


Title: Begin with zero?
Name: Veli
Date: 9/12/2013 7:21:51 AM
Comment:
0.0.0.0 ?


Title: good one..
Name: Malini Gupta
Date: 1/20/2010 2:10:22 PM
Comment:
Very simple and easy to understand especially for newbies.. Kudos..


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