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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 1 to 9999 Positive Numbers
Expression
^[1-9]{1}$|^[0-9]{1}[0-9]{1}[0-9]{1}[0-9]{1}$|^9999$
Description
This is only +ive numbers excluding 0. It takes 1 to 9999.
Matches
1, 123, 9465, 9999
Non-Matches
0, -1, -123, 99999
Author Rating: Not yet rated. Gaurav Agrawal
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: Doesn't work
Name: Max
Date: 6/7/2016 11:33:18 AM
Comment:
Doesn't work. Try for example 123


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