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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Percent 0.00-100.00
Expression
^100$|^100.00$|^\d{0,2}(\.\d{1,2})? *%?$
Description
Allows percent values from 0 to 100 without the % sign. Can be used with up to 2 decimal places or without any. Also works in ASP.NET regular expression validator control.
Matches
0|0.00|50.25|100|100.00
Non-Matches
100.01|-1|5.005
Author Rating: Not yet rated. Greg Knierim
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

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