What's the regular expression for positive whole numbers only? (zero is not allowed)
I was able to get the regular expression for numbers only which is ^\d+$
. I've been trying to look for one online but it's already been an hour so I've decided to post it here on Stack Overflow.
matches:
1 || 2 || 444 || 9000 || 012
non-matches:
9.2 || -90