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{1,5}(\.\d{1,2})?$
Description
validate a number 5 digits and 2 decimal places allowing zero
Matches
12345.67 | 0 | 0.1
Non-Matches
123456.78 | 123456.789 | .1
Author Rating: The rating for this expression. Paul Ashton
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: javascript RegExp is not working
Name: alahari
Date: 10/11/2014 6:21:25 AM
Comment:
the same format is working in a regular expression but not working in java script. any help?


Title: It works for me
Name: nelson
Date: 6/17/2013 9:50:23 PM
Comment:
Thanks, it fits what I need.


Title: 000 through 999 only
Name: lonnie
Date: 1/5/2011 7:00:31 AM
Comment:
no negatives or seperators, is it around 300 combos?


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