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 2
Title Test Details Decimal with scale
Expression
^\d*[0-9](\.\d?[0-9])?$
Description
Allow Decimal values as [decimal](*, 2), scale length between 0 and 2
Matches
87645.09 | 87645.9 | 87645.10 | 87645
Non-Matches
87645.091 | 87645.
Author Rating: Not yet rated. Mohamed Ahmed
Title Test Details Percentage with scale
Expression
^((\d{0,1}[0-9](\.\d{0,1}[0-9])?)|(100))$
Description
Allow Percentage with optional scale (max length of 2) between (00.00 and 100)
Matches
00.00 | 00 | 99.99 | 99.5 | 100
Non-Matches
99. | 100.1
Author Rating: Not yet rated. Mohamed Ahmed
   Displaying page 1 of 1 pages; Items 1 to 2

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