What is the regex for "Any positive integer, excluding 0"
Try this:
^[1-9]\d*$
...and some padding to exceed 30 character SO answer limit :-).
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]*$
You might try a negative lookahead assertion:
^(?!0+$)\d+$