Regex for at least 4 digits

Matches a number with 4 or more digits.

^\d{4,}$

Proof it works

4/4 sample tests passed · compiles: true

SampleShould matchResult
3074 yes pass
307418 yes pass
307 no pass
abc no pass

Try your own input

Related patterns