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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Phone Number Mex/USA/Int
Expression
^(\+(1\-)?\d{1,3})?(\s|\-)?(\s|\-)?((\(\d{2}\)|\d{2})(\s|\-)?\d{4}|(\(\d{3}\)|\d{3})(\s|\-)?\d{3})(\s|\-)?\d{4}(\s)?(x|ext|ext.)?(\d{1,6})?,?(\d{1,6})?,?(\d{1,6})?$
Description
Match mexican local or international numbers with optional area code parentheses and optional max 3 extensions with 6 chars length.
Matches
(55) 1234-5678 x123456,123,12 | 5512345678 | +1 (510) 123-5678 x1234
Non-Matches
+1 510 (55 1234-5678 | 12345678 x123 | +1 (510) 1234-5678 x1234567
Author Rating: Not yet rated. Asere Ware
Source asereware
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