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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^((\d{1,2})?([.][\d]{1,2})?){1}[%]{1}$
Description
for checking a value is between 99.99% and 00.00%
Matches
99.99% | 9% | .09%
Non-Matches
99 | 9.%
Author Rating: Not yet rated. Thomas Keegan
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: shorter version
Name: T. L. Whittington
Date: 8/5/2018 5:46:27 AM
Comment:
It works, but the same thing can be accomplished with a reduced: ^((\d+)?(\.\d+)?)\%$


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