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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find All number between 0001 and 9999
Expression
^([1-9]\d{3}|0[1-9]\d{2}|00[1-9]\d{1}|000[1-9]{1})$
Description
This RE will match all numbers between (including) 0001 and 9999. Four places of digits are mandatory in this expression.
Matches
0001 | 0064 | 0948 | 7697
Non-Matches
1 | 64 | 948
Author Rating: Not yet rated. Amritashan S. Lal
Source Amritashan S. Lal
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

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