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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Pattern Title
Expression
^(0|([1-9]\d{0,3}|[1-5]\d{4}|[6][0-5][0-5]([0-2]\d|[3][0-5])))$
Description
Matches TCP port numbers from 0 to 65535. Other than '0', no leading 0's are accepted.
Matches
0 | 1000 | 65535
Non-Matches
65536 | 99999 | 0123
Author Rating: The rating for this expression. Kevin Limperos
   Displaying page 1 of 1 pages; Items 1 to 1

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