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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Currency Evaluator with commas and max 2 decimals
Expression
^([1-9]+\d{0,2},(\d{3},)*\d{3}(\.\d{1,2})?|[1-9]+\d*(\.\d{1,2})?)$
Description
Accepts non-negative numbers with max two decimals. Commas can be added after every thousand.
Matches
1200 | 1,200 | 1,200.0 | 12,324,532.23
Non-Matches
-43 | 0 | 01,423,534.23 | 24.4223 | 32,42,123
Author Rating: Not yet rated. Arvind
Source Me
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

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