I have a regex matching a 2 digit number ^(\d{2})$
, but need to do the opposite of this. For example, the following need to match:
HK
VK
112
1H
V1
But the following would not match
14
15
91
00
99
Is there any way I can just invert my regex? I know I could check for a match and invert the result, but that is not possible within my constraints.