Solved

Validate UK Mobile Phone Numbers

Posted on 2003-12-08
3
722 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now