Can someone please help me to write a regex code so that I can validate a phone number to be a Mexico Phone Number?
Page 1 / 1
Regex is pattern matching. Do you have a list of "Mexico phone number" patterns?
Thanks for the response Ahmed. Validity for Mexico Phone Number would be, it should be 10 digits long. However, the tricky part is first 2/3 digits would be the area code. For example -
Guadalajara numbers starts with 33
Mexico City with 55/56
Durango with 618, etc.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.