Back to Library
Numbers

Percentage

Matches a percentage value (0-100), optional decimals.

Pattern
^(?:100(?:\.0+)?|\d{1,2}(?:\.\d+)?|0(?:\.\d+)?)\%?$

Test Cases

99.9% Match
101 No Match

Try it Live

Test and customize this pattern in our interactive editor

Open in Editor