Title |
Test
Find
Pattern Title
|
Expression |
(077|078|079)\s?\d{2}\s?\d{6} |
Description |
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. |
Matches |
07713 345678 | 078 12345678 | 079 12345678 |
Non-Matches |
02344 123456 | 0121 292929 | 012345 6789 |
Author |
Rating:
Not yet rated.
John Chivers
|
Source |
|
Your Rating |
|
Title: UK mobile phone RegEx
Name: g1smd
Date: 9/4/2012 2:48:53 PM
Comment:
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
Comment:
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
Comment:
any many more will.. may want to just keep the first 2 digits.