I need help with a pattern to match a zero-padded integer which is not all zeros. It can have zero to n leading zeros. So far I have:
^[0-9]{0,}[1-9]{1}$"
but this does not get things like 000860
because of the last zero. I feel like this should be simple, but I can't get it. Any help would be much appreciated.
EDIT: A few people have asked which engine/language this is. I thought regex was standardized so it wouldn't matter. But it's .NET.