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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[1-9]{1}$|^[1-4]{1}[0-9]{1}$|^50$
Description
Match any number between 1 and 50, no characters, no empty sets, and not zero. Match numbers greater than 1 and less than 51, no spaces, no characters.
Matches
1 | 23 | 50
Non-Matches
0 | 111 | xyz
Author Rating: Not yet rated. Michael Gaertner
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: How can I support decimals in this expression.
Name: Harsh
Date: 6/28/2010 8:57:44 AM
Comment:
how can I support decimals to work in this same expression? I want to allow 0 and decimal to work in this same range.


Title: Congrats
Name: John
Date: 4/2/2003 4:27:52 PM
Comment:
Works great!


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