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 Number or Range of numbers
Expression
^(\d*\s*\-?\s*\d*)$
Description
For numbers such as 27 or a range using spaces and/or a hyphen such as 5 - 10 (meaning between 5 and 10).
Matches
"10" "27 " "5 - 10" "27-29" "30 40"
Non-Matches
"10 Hello"
Author Rating: Not yet rated. Dave K
   Displaying page 1 of 1 pages; Items 1 to 1

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