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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Phone Number
Expression
(1 )?\d{3} \d{3}-\d{4}
Description
This expression matches a US phone number with or without the leading 1.
Matches
1 555 765-1234 | 555 765-1234
Non-Matches
765-1234 | 123 456 9876
Author Rating: The rating for this expression. Stan Neidecker
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

Title: phone no
Name: Maulik
Date: 3/13/2010 1:18:50 AM
Comment:
how can i make regular expression for phone no like(079)22775487


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