Regex for 9 digit number

Matches a number with exactly 9 digit(s).

^\d{9}$

Proof it works

4/4 sample tests passed · compiles: true

SampleShould matchResult
307418529 yes pass
3074185296 no pass
30741852 no pass
aaaaaaaaa no pass

Try your own input

Related patterns