I need to match phone numbers that :
-
start with 010 or 012 or 016 or 019
-
Consist of 10 numbers exactly
Can you please help me on how to match numbers using PHP and regex?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will match 0, 1, one of (0, 2, 6, 9), and then any 7 numbers (3+7==10). The
^means start of string and$means end of string.