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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find UK Telephone
Expression
(((\+44)? ?(\(0\))? ?)|(0))( ?[0-9]{3,4}){3}
Description
This regex matches UK phone numbers in multiple formats, including those that begin with the international dial code and optionally bracket the leading zero of the area code. To match a number must begin with either +44 or 0 and have 9-12 following digits.
Matches
+44 (0) 1234 567890 or +44 1234 567890 or 01234 567890 or 0123 456 7890
Non-Matches
Numbers not beginning with 0 or +44 and numbers with less than 9 digits
Author Rating: Not yet rated. VB
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: Doesn't work 5 digit phone numbers
Name: John Seto
Date: 11/22/2007 10:03:59 AM
Comment:
There are still a few places I think have 5 digit phone numbers, Newbury is a definite.


Title: dsfdf
Name: dsfdf
Date: 8/6/2007 1:28:22 AM
Comment:
sdfdsfdfdfdfdfdfdfdfdf


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