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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$
Description
Filter US telephone numbers. This particular one accepts only area code 939 or 787. Area code parentesis or hyphens optional.
Matches
(787)755-0114 | 939-315-0112 | 7879093849
Non-Matches
(098)737-3942 | (89)893-2392 | 939782721
Author Rating: Not yet rated. Ricardo Gonzalez
Source
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-2024, RegexAdvice.com | ASP.NET Tutorials