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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^([0-5]?\d?\d?\d?\d|6[0-4]\d\d\d|65[0-4]\d\d|655[0-2]\d|6553[0-5])$
Description
match for 0 - 65535
Matches
0 | 65535 | 59999
Non-Matches
123456 | 69999 | 65599
Author Rating: The rating for this expression. Friedel Wittrock
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: Regular Expression for Numbers
Name: Kavita Harduth
Date: 11/13/2013 5:21:31 AM
Comment:
Hi Friedel Could you please assist me, I am trying to locate an expression that will only allow numbers in the range of 00 - 55. Do you know the expression for this? Thank you. Kavita


Title: Answer
Name: Friedel Wittrock
Date: 6/14/2005 11:06:49 AM
Comment:
it was a big application with many rules and regex, all in a xml-config-file and not hardcoded ;-)


Title: Lame
Name: Me
Date: 6/13/2005 7:13:47 PM
Comment:
Much cleaner; waaaaaay faster: if(0<=var && var<=65535) ...


Title: Answer
Name: Friedel Wittrock
Date: 1/7/2005 7:11:52 AM
Comment:
is specifically made for an application, which expects exactly a value between 0 and 65535, inclusive the 0 and 65535, otherwise it throws an exception


Title: port
Name: John
Date: 1/6/2005 6:38:53 PM
Comment:
Is this expression specifically made to check for the correct ports within range?


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