Regex for 6 to 10 digits

Matches a number between 6 and 10 digits long.

^\d{6,10}$

Proof it works

4/4 sample tests passed · compiles: true

SampleShould matchResult
307418 yes pass
3074185296 yes pass
30741 no pass
30741852963 no pass

Try your own input

Related patterns