Regex for 3 digit number

Matches a number with exactly 3 digit(s).

^\d{3}$

Proof it works

4/4 sample tests passed · compiles: true

SampleShould matchResult
307 yes pass
3074 no pass
30 no pass
aaa no pass

Try your own input

Related patterns