Solved

Validate UK Mobile Phone Numbers

Posted on 2003-12-08
3
733 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP Installer 5 47
Forms that calculate points for wordpress 10 88
Create an automated page index 9 84
How to use NFS (Network File System) in Asp.net mvc 5? 4 59
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
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…

733 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