RegEx for validating mobile numbers of Pakistan. To change it to work for your country just change 92
and 3
with your country code. Also you can change length of numbers by changing last {9}
^((\+92)?(0092)?(92)?(0)?)(3)([0-9]{9})$/gm
Test it online on RegExr or RegEx101
There are three
groups: