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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Percentage Match
Expression
^100$|^\d{0,2}(\.\d{1,2})? *%?$
Description
It matches % value from 0 - 100. The two decimal places are used.
Matches
100 | 99.99 | 00 | 20.99
Non-Matches
101 | 22.1111
Author Rating: The rating for this expression. Amir Raza
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

Title: developer
Name: Dil
Date: 12/5/2008 8:51:40 AM
Comment:
Perfect!!! After much hunting around, this was exactly what i needed. Thanks :)


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