Regex for Decimal with 2 places

Matches a number with exactly two decimal places.

^\d+\.\d{2}$

Proof it works

5/5 sample tests passed · compiles: true

SampleShould matchResult
3.14 yes pass
100.00 yes pass
3.1 no pass
3.145 no pass
3 no pass

Try your own input

Related patterns