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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^\d{0,2}(\.\d{1,2})?$
Description
This regular expression validates that the data entered is a number with a maximum of two integers and two decimals and a minimum of one integer or one decimal.
Matches
99.99 | 99 | .99
Non-Matches
999.999 | 999 | .999
Author Rating: The rating for this expression. Jaime Borges
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: Decimal With 0.1 to 1.5
Name: Satish MP
Date: 7/24/2018 12:05:27 PM
Comment:
I need a regular expression with numbers 0.1 to 1.50 only, Please send me the reg ex


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