THIS IS DISTINCT FROM THE REFERENCED QUESTION because I have extensively researched and tested various solutions before resorting to posting this inquiry.
I am in need of a validation for inputs that adhere to the following criteria:
The first character is always: 0
The second character is always: 1
Followed by exactly 9 digits
For example:
case 1: 01123456789 => should match
case 2: `01123456789`0 => should not match but does match
case 3: 123`01123456789`5985 => should not match but does match
I am currently using the following pattern:
/([0][1][0-9]{9})/g
However, both case 2 and 3 are also matching with this pattern, when only case 1 should be accepted. How can I adjust the pattern to achieve this?