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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Positive percentage
Expression
^[+]?100(\.0{1,2})?%?$|^[+]?\d{1,2}(\.\d{1,2})?%?$
Description
Matches positive percentage strings with '+' as an optional prefix and '%' as an optional postfix.
Matches
0 00 02 025 2.5 2.50 25.01 100 100.00 +60.63 +70.71% 0.01%
Non-Matches
-1 101 100.01 100 000 +000 25.001 1,50 25%% ++50 70+ 80%+
Author Rating: Not yet rated. Marcel
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