Matches a percentage value (0-100), optional decimals.
^(?:100(?:\.0+)?|\d{1,2}(?:\.\d+)?|0(?:\.\d+)?)\%?$
99.9%
101
Test and customize this pattern in our interactive editor