Regex for at least 2 digits

Matches a number with 2 or more digits.

^\d{2,}$

Proof it works

4/4 sample tests passed · compiles: true

SampleShould matchResult
30 yes pass
3074 yes pass
3 no pass
abc no pass

Try your own input

Related patterns