Regex for at least 6 digits

Matches a number with 6 or more digits.

^\d{6,}$

Proof it works

4/4 sample tests passed · compiles: true

SampleShould matchResult
307418 yes pass
30741852 yes pass
30741 no pass
abc no pass

Try your own input

Related patterns