RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find North American Phone Numbering Plan
Expression
^((\+?(?<CountryCode>1)\s(?<AreaCode>[2-9][0-8][0-9])\s)|((?<AreaCode>[2-9][0-8][0-9])\s))?(?<ExchangeCode>[2-9][0-9][0-9])\s(?<StationCode>[0-9][0-9][0-9][0-9])$
Description
Matches normalized (space separated) phone numbers according to the NANP (North American Numbering Plan). It doesn't support extension numbers.
Matches
+1 206 555 3080
Non-Matches
1 555 3080
Author Rating: Not yet rated. Eduardo Velasquez
Source http://en.wikipedia.org/wiki/North_American_Numbering_Plan
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials