Solved

Validate UK Mobile Phone Numbers

Posted on 2003-12-08
3
732 Views
Last Modified: 2011-10-03
Hi,

Does anybody know of an algorithm with which to validate UK mobile phone numbers? I think numbers from different operators have different prefixes, but is there a definitive way to say number x is valid, but number y isn't (e.g. as you can with a credit card)?

And on a related note, is it possible to 'sniff' whether a mobile phone would accept MMS messages by interacting with it in some way (excluding sending an sms saying 'D U WANT PICTURES?')

A cheeky double-header, but interested to hear what yout think.

Cheers
subtext101
0
Comment
Question by:subtext101
3 Comments
 
LVL 35

Assisted Solution

by:YZlat
YZlat earned 100 total points
ID: 9897884
give an example
0
 
LVL 16

Accepted Solution

by:
jaysolomon earned 165 total points
ID: 9897953
WE can write a reg exp for the phone, no problem

but we need to no the pattern

US example
(123)456-7890 or (123) 456-7890
0
 
LVL 1

Author Comment

by:subtext101
ID: 9942085
Hi Folks,
It was the pattern I was after.  I found it on Oftel's website - it is:

44 (0) [77-79] XXXX XXXX

They have a list, so you can determine which network just from the phone number.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Standard for Web Development 3 47
REReplaceNoCase help 1 43
When should I use a controller? 3 40
tutorial for ebay api 3 55
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question