Hi ,
What i have at present is a regex for each country's corresponding mobile phone prefix, So i have over a hundred.
var afgM = /(700|0381|72|77|786|788|797|799)\d{7,8}$/;
.....
So what happens is the user enters in the their mobile number and depending on the mobile prefix assigns the international code to it?
Is there a better way of doing this instead of declaring 100 + regex?
*This post is locked for comments
I have the same question (0)