I’ve tried with no luck to search the interwebs for a regular expression that checks for:
- A positive #
- Between 0 and 12
I need to put it in the brackets for this particular line of code
Regex rxValidHeightInches = new Regex();
Any help would be greatly appreciated!
Thanks
This should work
^(\d|(1[0-2]))$