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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^100$|^[0-9]{1,2}$|^[0-9]{1,2}\,[0-9]{1,3}$
Description
Percentage with 3 number after comma.
Matches
12,654 | 1,987
Non-Matches
128,2 | 12,
Author Rating: The rating for this expression. Samir AZZA
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: Percentage
Name: Improvement
Date: 10/9/2014 7:01:57 AM
Comment:
Total credit to Samir. Was a great start for me. I'd like to contribute with a small improvement to cut on '01' or '00' type matches: ^100$|^0$|^[1-9]{0,1}[0-9]{0,1}$|^[0-9]{1,2}\,[0-9]{1,3}$ or depending on the decimal convention: ^100$|^0$|^[1-9]{0,1}[0-9]{0,1}$|^[0-9]{1,2}\.[0-9]{1,3}$


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