I have this simple regular expression,
[\d]{1,5}
which matches any integer from 0 to 99999.
How can I change it so that it does not match 0, but matches 01 and 10, etc.?
I know there is a way to do OR, for example ...
[\d]{1,5}|[^0]{1}
(doesn't make much sense)
Is there a way to do AND?
source
share