Regex for 3 to 5 digits

Matches a number between 3 and 5 digits long.

^\d{3,5}$

Proof it works

4/4 sample tests passed · compiles: true

SampleShould matchResult
307 yes pass
30741 yes pass
30 no pass
307418 no pass

Try your own input

Related patterns