- The first Regular Expression Library on the Web!

Please support RegExLib Sponsors


Regular Expression Details

Title Test Find Pattern Title
Validates UK mobile phone numbers. Valid formats are `077', `078' or `079' followed by another 8 digits, with an optional space after the dialling code and/or between the 4th and 5th characters of the remainder of the number. These formats are taken from the official guidelines from Ofcom, the organisation responsible for UK telecoms issues. Brackets are not valid and STD code must be entered.
07713 345678 | 078 12345678 | 079 12345678
02344 123456 | 0121 292929 | 012345 6789
Author Rating: Not yet rated. John Chivers
Your Rating
Bad Good

Enter New 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: UK mobile phone RegEx
Name: g1smd
Date: 9/4/2012 2:48:53 PM
UK mobiles now also use 074, 075 and 07624. Having found the 07 once, why keep on searching for it again in multiple OR statements? That is very inefficient. Try this replacement pattern: ^07([45789]\d{2}|624)\s?\d{3}\s?\d{3}$

Title: UK mobile RegEx including new numbers and Isle of Man.
Name: g1smd
Date: 7/27/2012 4:47:15 AM
Once the 07 part has been found, there's no need to keep on finding it again. UK numbers beginning 07 (except for 070 personal numbers and 076 pagers) are mobile numbers, but 071, 072 and 073 are not yet in service. Don't forget 07624 is used for mobile numbers in the Isle of Man. Try this: "^(\+44\s?|0)7([45789]\d{2}|624)\s?\d{6}$"

Title: my mob. number starts "075"
Name: me
Date: 3/31/2010 10:47:50 AM
any many more will.. may want to just keep the first 2 digits.

Copyright © 2001-2018, | ASP.NET Tutorials