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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Port Numbers
Expression
^(6553[0-5]|655[0-2]\d|65[0-4]\d\d|6[0-4]\d{3}|[1-5]\d{4}|[1-9]\d{0,3}|0)$
Description
Port Numbers: Well Known Ports, Registered Ports & Dynamic and/or Private Ports: 0 through 65536. Matches numbers in range of 0 through 65536.
Matches
1023 | 49151 | 65535
Non-Matches
65536 | 66000 | 67000
Author Rating: The rating for this expression. 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: And Dynamic and/or Private Ports
Name: Dean Dal Bozzo
Date: 6/30/2005 6:22:07 PM
Comment:
Includes all three: Well Known Ports Registered Ports Dynamic and/or Private Ports


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