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:
Samir AZZA
|
Source |
|
Your Rating |
|
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}$