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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(\+[1-9][0-9]*(\([0-9]*\)|-[0-9]*-))?[0]?[1-9][0-9\- ]*$
Description
International phone number check - optional country code followed by area code surrounded with '-' or '(' and ')', or just an area code optionally starting with 0, followed by phone numder. The number itself may contain spaces and '-'
Matches
+123(45)678-910 | +123-045-67 89 10 | 01-234-56-78
Non-Matches
123(45)678 91011 | (12)345-678 | +0(12)345-6789
Author Rating: Not yet rated. Dmitry Kandiner
Source Remastered expression from this site. Original expression by James Burton (http://regexlib.com/REDetails.aspx?regexp_id=73)
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: Does not work
Name: Jummy Edlis
Date: 1/11/2010 11:33:39 AM
Comment:
Does not accept most international phone numbers ex +49-2241-4911230


Title: Cool
Name: Uky
Date: 7/17/2003 12:47:23 AM
Comment:
Great Thank you very much


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