You're close Try the following:
^\d{0,9}$
The values ββ^ and $ correspond to the beginning and end of the text, respectively. \d{0,9} matches anywhere on the line, so d0000 will go through because it will match 0000 , although it has d in it, which I donβt think you want. That is why they should be there.
source share