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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Port Numbers
Expression
^(102[0-3]|10[0-1]\d|[1-9][0-9]{0,2}|0)$
Description
Port Numbers: Well Known Ports: 0 through 1023. Matches numbers in range of 0 through 1023.
Matches
0 | 123 | 1023
Non-Matches
1024 | 9999 | 99999
Author Rating: Not yet rated. Dean Dal Bozzo
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: Why stop at 1024? Why not 65535?
Name: Avg Joe
Date: 9/29/2011 9:06:08 AM
Comment:
Can you clarify why we'd only go up to 1024 as opposed to the actual upper limit of port numbers? btw - some of these captcha's are ridiculously hard to enter...


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