What is the regex for "Any positive integer, excluding 0"
Sorry to come in late but the OP wants to allow 076
but probably does NOT want to allow 0000000000
.
So in this case we want a string of one or more digits containing at least one non-zero. That is
^[0-9]*[1-9][0-9]*$
Try this:
^[1-9]\d*$
...and some padding to exceed 30 character SO answer limit :-).