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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

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