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 Decimal Range 0 to 4
Expression
^((0{1})?([0-3]{0,1}))(\.[0-9]{0,2})?$|^(4)(\.[0]{1,2})?$|^((0{1})?([0-4]{0,1}))(\.)?$
Description
Validates positive numbers with in the 0 to 4 range and up to two decimal places
Matches
00,0,0.,1,1.,1.0,01,01.,01.9,4,.12
Non-Matches
000,001,5,-1,-0
Author Rating: Not yet rated. vikasmisra
   Displaying page 1 of 1 pages; Items 1 to 1

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