I have one string like 010000200000, 000000200000, 020000200000. I want to create regex for this and want to check that first 2 digit will be only 01,00 & 02. And rest of the digit should be only from [0-6].
I don’t want any space or any special character in this string. I try some of the regex available online but didn’t help me exactly.
If anyone has any idea please kindly help.
This should parse them with your requirements.
The first character is always a 0, followed by 1 character that is a 0, 1 or 2, followed by at least 1 character in the 0-6 range.