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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Phone numbers
Expression
(((\d{0,2})\(\d{3}\))|(\d{3}-))\d{3}-\d{4}\s{0,}((([Ee][xX][Tt])|([Pp][Oo][Ss][Tt][Ee])):\d{1,5}){0,1}
Description
Phone numbers validation with extension number
Matches
111-1111-1111, 1(111)111-1111, (111)111-1111,(111)111-1111 EXT:1111,(111)111-1111 ext:1111, (111)111-1111 POSTE:1111, 111-111-1111 EXT:1111
Non-Matches
1, 1111111111, (111)111-1111 EXT1111
Author Rating: The rating for this expression. Eduardo Mardini
Source mine
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-2025, RegexAdvice.com | ASP.NET Tutorials