Regex for 2 digit number

Matches a number with exactly 2 digit(s).

^\d{2}$

Proof it works

4/4 sample tests passed · compiles: true

SampleShould matchResult
30 yes pass
307 no pass
3 no pass
aa no pass

Try your own input

Related patterns