The Regex is: ^[0-9]*$
^ Matches the beginning of the string, or the beginning of a line if the
multiline flag (m) is enabled. This matches a position, not a character.
[0-9] Matches a character having a character code between the two
specified characters inclusive.
* Matches 0 or more of the preceding token.
$ Matches the end of the string, or the end of a line if the multiline
flag (m) is enabled. This matches a position, not a character.