I have a input which can be the following (Either one of these three):
- 1-8…in other words 1, 2,3,4,5,6,7,8
- A-Z….in other words, A, B, C, D etc
- 01-98…in other words, 01,02,03,04 etc
I came up with this regex but it's not working not sure why:
@"[A-Z0-9][1-8]-
I am thinking to check for corner cases like just 0 and just 9 after regex check because regex check isn't validating this