Regex : Matching phone numbers starting with NNN and having 10 numbers

Posted by NetCaster on Stack Overflow See other posts from Stack Overflow or by NetCaster
Published on 2010-05-09T15:28:57Z Indexed on 2010/05/09 15:38 UTC
Read the original article Hit count: 582

Filed under:
|
|

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

thanks

© Stack Overflow or respective owner

Related posts about regex

Related posts about php