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 2
Title Test Details 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
Title Test Details Number without all zero
Expression
^([\d]*[1-9]+[\d]*)$
Description
RE to match numbers with value greater than 0.
Matches
0001 | 120064 | 1000000 | 1
Non-Matches
0 | 000000000 | 0000
Author Rating: The rating for this expression. Amritashan S. Lal
   Displaying page 1 of 1 pages; Items 1 to 2

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