Am having hard time crediting a regex to check if a number starts with 01, 02 or 08 and is ten or eleven digits long.
For example I want numbers formatted like this to pass:
01614125745
02074125475
0845895412
08004569321
and numbers other forms to fail, number like:
0798224141
441544122444
0925456754
and so on. Basically, any number that does not start with 01 02 or 08.
The following pattern follows the criteria:
Explanation: