Regex for 8 to 12 digits

Matches a number between 8 and 12 digits long.

^\d{8,12}$

Proof it works

4/4 sample tests passed · compiles: true

SampleShould matchResult
30741852 yes pass
307418529630 yes pass
3074185 no pass
3074185296307 no pass

Try your own input

Related patterns