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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Telephone Number
Expression
^([(]?[+]{1}[0-9]{1,3}[)]?[ .\-]?)?[(]?[0-9]{3}[)]?[ .\-]?([0-9]{3}[ .\-]?[0-9]{4}|[a-zA-Z0-9]{7})([ .\-]?[/]{1}[ .\-]?[0-9]{2,4})?$
Description
An inefficient number validator. PHP and JavaScript compatible. Dashes [-] can be replaced by " " or "." Support for extention /000
Matches
+000-000-000-0000 | (+000) 000 000 0000 | (+000) (000) 000-0000 | (000) 000-0000 | +1-800-0000000 | +1-800-RLYCOOL
Non-Matches
1-800-0000000 | 1-800-RLYCOOL
Author Rating: The rating for this expression. mAsT3RpEE
Source http://mast3rpee.tk/
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