Regex for at least 5 digits

Matches a number with 5 or more digits.

^\d{5,}$

Proof it works

4/4 sample tests passed · compiles: true

SampleShould matchResult
30741 yes pass
3074185 yes pass
3074 no pass
abc no pass

Try your own input

Related patterns