Welcome, Guest. Please Login or Register
NEW: MOBILE PHONE DEAL COMPARISONS
CHECK OUT OUR MOBILE PHONE DEAL COMPARISON SERVICE. GET THE BEST DEAL ON A NEW PHONE
Normal Topic Phone Number Lengths (Read 10,569 times)
MinReq
Newbie
*
Offline



Posts: 3
Joined: Jul 26th, 2005
Phone Number Lengths
Jul 26th, 2005 at 7:17am
Print Post Print Post  
As I understand, it this is a list of the all the phone number prefixes for the UK. 

  • 01
  • 02
  • 070 
  • 076 
  • 077 
  • 078 
  • 079 
  • 0500 
  • 0800 
  • 0808 
  • 0844 
  • 0845 
  • 0870 
  • 0871 
  • 090 
  • 091

I was wondering if there was a specification which could tell me how many numbers were allowed to follow each of the suffixes and if such a specification exists; where to find it. Also if there are any prefixes missing, I'd appreciate anyone filling in the gaps.
  
Back to top
 
IP Logged
 
bigjohn
Supreme Member
*****
Offline



Posts: 2,316
Joined: Mar 31st, 2005
Gender: Male
Re: Phone Number Lengths
Reply #1 - Jul 26th, 2005 at 7:31am
Print Post Print Post  
Also 0551,0555,0558,and 056.

You might find the posting,sticky,titled( Numbering and Pricing Information) by Dave (The Moderator) on this sub forum helpful.
« Last Edit: Jul 26th, 2005 at 7:35am by bigjohn »  

BJ.
Back to top
 
IP Logged
 
Dave
Global Moderator
*****
Offline



Posts: 9,902
Location: Yorkshire
Joined: Apr 29th, 2004
Gender: Male
Re: Phone Number Lengths
Reply #2 - Jul 26th, 2005 at 12:46pm
Print Post Print Post  
I've not looked, but I think you will find the information you are after on Numbering Policy. This has lists of allocated prefixes and which operator they are allocated to.

Can I ask why you are after this information?
  
Back to top
 
IP Logged
 
MinReq
Newbie
*
Offline



Posts: 3
Joined: Jul 26th, 2005
Re: Phone Number Lengths
Reply #3 - Jul 27th, 2005 at 12:44am
Print Post Print Post  
I'm doing phone number validation script for my programming class. My Australian one works and for extra credit I'm looking at doing other countries. I found regular expressions for UK home and mobile numbers, but they don't take into account premium services, free call numbers and such.
  
Back to top
 
IP Logged
 
idb
Supreme Member
*****
Offline



Posts: 1,499
Location: Miami, Florida, United States
Joined: Mar 31st, 2004
Gender: Male
Re: Phone Number Lengths
Reply #4 - Jul 27th, 2005 at 1:21am
Print Post Print Post  
You should find the information in the Oftel legacy archives (http://www.ofcom.org.uk/static/archive/oftel/index.htm). I have seen Oftel documents relating to numbering length somewhere in this large archive, but can't recall exactly where at the moment. You'll need to do a bit of searching around - numbering groups / bulletins will be a good place to start, but the info you need is there somewhere, and I believe it is likely to be current.

The old Oftel site, although somewhat disorganized, was far more useful to the end user than the current Ofcom one which simply seems to be a pointless effort.
  

As from November 21, 2013, I no longer participate in the forum and am unable to receive private messages.
Back to top
 
IP Logged
 
DaveM
Global Moderator
*****
Offline


Du vin, du pain,   du
Ibuprofen ¡

Posts: 845
Location: Peterborough
Joined: Mar 27th, 2004
Gender: Male
Re: Phone Number Lengths
Reply #5 - Jul 27th, 2005 at 7:14pm
Print Post Print Post  
Your validation will not work (in my opinion) as there are different length numbers available for NGN's (0870, 0845, 0844 & 0800) let alone 01 and 02 Geo's.

The standard may be the NGN prefix plus 7 digits, but it can also be plus 6 digits.

Even for some Geographical numbers it can be difficult as some 5 digit prefix codes normally have 6 digits added but occasionally only have 5 digits.
Look at some of the numbers we have in the database for examples.

Even on the Internet this happens quite often so don't be fooled. Watch out for those where digits have been missed off by people misreading them. On numbers submitted to us, 08700 is the most usual culprit, together with those upto 08709, then comes 08453, 08457, etc.   Undecided
  
Back to top
 
IP Logged
 
bbb_uk
Global Moderator
*****
Offline



Posts: 2,041
Joined: May 18th, 2005
Re: Phone Number Lengths
Reply #6 - Jul 27th, 2005 at 8:22pm
Print Post Print Post  
Quote:
Your validation will not work (in my opinion) as there are different length numbers available for NGN's (0870, 0845, 0844 & 0800) let alone 01 and 02 Geo's....
It probably could be made to work but it definitely wouldn't be easy to do and would be very time-consuming as, like DaveM said, there are a lot of different possible combinations to become a potentially valid number.

Have you emailed BT and asked them do they have a list of STD codes and area codes, etc.  Mention the fact that you are a student and its for an assignment as they may help you more without wondering why you are asking in the first place.
« Last Edit: Jul 27th, 2005 at 8:26pm by bbb_uk »  
Back to top
 
IP Logged
 
Dave
Global Moderator
*****
Offline



Posts: 9,902
Location: Yorkshire
Joined: Apr 29th, 2004
Gender: Male
Re: Phone Number Lengths
Reply #7 - Jul 27th, 2005 at 8:51pm
Print Post Print Post  
Quote:
Have you emailed BT and asked them do they have a list of STD codes and area codes, etc. ...

Ofcom provide this information here. It is in the form of several Excel files.

They have missed the leading zero off, and tell you the length of each number (not including the leading zero). If you use Excel to sort them by the column that lists their length, you should be able to see whats what.

It's not straightforward, and there really isn't a nice pattern to what's 11 digit and whats 10 digit (including leading zero).

All new numbers are 11 digit, with older ones 10 digit. Some older 10 digit numbers were migrated to new codes to make them 11 digit ones. Eg, 0345 123456 became 08457 123456.

Then there's Childline, which uses 0800 1111 and NHS Direct which uses 0845 4647.
  
Back to top
 
IP Logged
 
MinReq
Newbie
*
Offline



Posts: 3
Joined: Jul 26th, 2005
Re: Phone Number Lengths
Reply #8 - Jul 29th, 2005 at 12:42am
Print Post Print Post  
Thanks guys, there's a wealth of info in those CSV files. It'll just take some time to go through and then determine an appropriate level of granularity.
  
Back to top
 
IP Logged