Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Mobile Phone Numbers (Cell Phones)

Mobile Phone Numbers (Cell Phones)

Scheduled Pinned Locked Moved The Lounge
comxmlhelpquestion
31 Posts 13 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Brian Delahunty

    Anybody have a link to a site where I can find out information about US and Canadian cell phone numbers.. e.g. In Ireland all mobile phones (Cell phones) start with 085, 086, or 087 ... and that is followed by a 7 digit number. So some examples would be 087123456, 0867654321 and internationally formatted these numbers would be 35387123456 and 353867654321 respectively. In South Africa all mobile phones start with 084, 083, 082, 074, 073, or 072 and are followed by 7 digits... so, eg. 0841234567 or internationally, 27841234567. I've managed to find these details easily enough for Ireland, UK, Germany, France, Spain, South Africa, and so on.... but I've looked high and low and I can't find reliable information about US or Canadian numbers, so I can't build the regular expressions I need to validate form inputs. So I decided to turn to my CP buddies. Can anybody help? [Edit]At this stage I'll settle for just ensuring there is the correct number of digits in the cell phone number... is that standard in the US?? i.e. "1" for the international code, always followed by x digits?[/Edit] P.S. Sorry if this is in the wrong forum guys but I've been here at CP for a while and I couldn't think of a forum where this would belong so I just posted here. Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
    http://www.briandela.com/pictures Now with a pictures section :-D
    http://www.briandela.com/rss/newsrss.xml RSS Feed

    M Offline
    M Offline
    Matt Gullett
    wrote on last edited by
    #6

    I think what you really want is a NANPA database. This site (http://www.nanpa.com/[^]) can provide you with area code maps and files. As others have said, you can't rely on the area code to identify the location of a person. The area code is really tied to which carrier(s) own rights to area code and prefixes (3 digit area code + 3 digit prefix). Usually, as-in mostly, as-in not always, this will work out to be relative to the persons location, but not always.

    1 Reply Last reply
    0
    • B Brian Delahunty

      Anybody have a link to a site where I can find out information about US and Canadian cell phone numbers.. e.g. In Ireland all mobile phones (Cell phones) start with 085, 086, or 087 ... and that is followed by a 7 digit number. So some examples would be 087123456, 0867654321 and internationally formatted these numbers would be 35387123456 and 353867654321 respectively. In South Africa all mobile phones start with 084, 083, 082, 074, 073, or 072 and are followed by 7 digits... so, eg. 0841234567 or internationally, 27841234567. I've managed to find these details easily enough for Ireland, UK, Germany, France, Spain, South Africa, and so on.... but I've looked high and low and I can't find reliable information about US or Canadian numbers, so I can't build the regular expressions I need to validate form inputs. So I decided to turn to my CP buddies. Can anybody help? [Edit]At this stage I'll settle for just ensuring there is the correct number of digits in the cell phone number... is that standard in the US?? i.e. "1" for the international code, always followed by x digits?[/Edit] P.S. Sorry if this is in the wrong forum guys but I've been here at CP for a while and I couldn't think of a forum where this would belong so I just posted here. Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
      http://www.briandela.com/pictures Now with a pictures section :-D
      http://www.briandela.com/rss/newsrss.xml RSS Feed

      G Offline
      G Offline
      Gary Thom
      wrote on last edited by
      #7

      Actually it is now possible to give up your land line and have the number transfered to your cell phone. It is also possible to do this to VOIP like Vonage (I did this, moving my POTS telephone number to Vonage). So there is no way to differentiate them. Gary Thom The palest ink is better than the best memory. - Chinese Proverb

      B T 2 Replies Last reply
      0
      • B Brian Delahunty

        Anybody have a link to a site where I can find out information about US and Canadian cell phone numbers.. e.g. In Ireland all mobile phones (Cell phones) start with 085, 086, or 087 ... and that is followed by a 7 digit number. So some examples would be 087123456, 0867654321 and internationally formatted these numbers would be 35387123456 and 353867654321 respectively. In South Africa all mobile phones start with 084, 083, 082, 074, 073, or 072 and are followed by 7 digits... so, eg. 0841234567 or internationally, 27841234567. I've managed to find these details easily enough for Ireland, UK, Germany, France, Spain, South Africa, and so on.... but I've looked high and low and I can't find reliable information about US or Canadian numbers, so I can't build the regular expressions I need to validate form inputs. So I decided to turn to my CP buddies. Can anybody help? [Edit]At this stage I'll settle for just ensuring there is the correct number of digits in the cell phone number... is that standard in the US?? i.e. "1" for the international code, always followed by x digits?[/Edit] P.S. Sorry if this is in the wrong forum guys but I've been here at CP for a while and I couldn't think of a forum where this would belong so I just posted here. Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
        http://www.briandela.com/pictures Now with a pictures section :-D
        http://www.briandela.com/rss/newsrss.xml RSS Feed

        T Offline
        T Offline
        Tom Archer
        wrote on last edited by
        #8

        In the US, your area code is dictated where you live - not by the type of phone you have. Also, in larger cities - such as Atlanta, NY, etc. - where multiple area codes exists and 10-digit dialing is mandatory, you have your choice of what area code you want. Rearding "1" that's for any long distance call. 011 is for international calls. Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

        B M 2 Replies Last reply
        0
        • B Brian Delahunty

          Anybody have a link to a site where I can find out information about US and Canadian cell phone numbers.. e.g. In Ireland all mobile phones (Cell phones) start with 085, 086, or 087 ... and that is followed by a 7 digit number. So some examples would be 087123456, 0867654321 and internationally formatted these numbers would be 35387123456 and 353867654321 respectively. In South Africa all mobile phones start with 084, 083, 082, 074, 073, or 072 and are followed by 7 digits... so, eg. 0841234567 or internationally, 27841234567. I've managed to find these details easily enough for Ireland, UK, Germany, France, Spain, South Africa, and so on.... but I've looked high and low and I can't find reliable information about US or Canadian numbers, so I can't build the regular expressions I need to validate form inputs. So I decided to turn to my CP buddies. Can anybody help? [Edit]At this stage I'll settle for just ensuring there is the correct number of digits in the cell phone number... is that standard in the US?? i.e. "1" for the international code, always followed by x digits?[/Edit] P.S. Sorry if this is in the wrong forum guys but I've been here at CP for a while and I couldn't think of a forum where this would belong so I just posted here. Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
          http://www.briandela.com/pictures Now with a pictures section :-D
          http://www.briandela.com/rss/newsrss.xml RSS Feed

          T Offline
          T Offline
          Tom Archer
          wrote on last edited by
          #9

          I worked for VeriSign - which does a lot of mobile phone billing - so I'll ping my former boss and see if he knows the answer to your main question of how to validate US mobile phone numbers. Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

          B 1 Reply Last reply
          0
          • C Chris Maunder

            US and Canada cell phone numbers are the same as land line numbers. You usually get the same number as your area code. Usually. Dave just got a new phone and the area code he got was cellphone specific, and wasn't a 416 or 905 Toronto area code. So saying, the format was still XXX-YYY-ZZZZ cheers, Chris Maunder

            T Offline
            T Offline
            Tom Archer
            wrote on last edited by
            #10

            Actually, that's only true in smaller cities. In larger cities, you get your choice of area codes related to that city. That's why in Atlanta, one person might have several phone numbers with each having a different area code - 404, 770, 678, etc. Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

            C W 2 Replies Last reply
            0
            • T Tom Archer

              Actually, that's only true in smaller cities. In larger cities, you get your choice of area codes related to that city. That's why in Atlanta, one person might have several phone numbers with each having a different area code - 404, 770, 678, etc. Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

              C Offline
              C Offline
              Chris Maunder
              wrote on last edited by
              #11

              You crazy Atlanta types. :) cheers, Chris Maunder

              T 1 Reply Last reply
              0
              • G Gary Thom

                Actually it is now possible to give up your land line and have the number transfered to your cell phone. It is also possible to do this to VOIP like Vonage (I did this, moving my POTS telephone number to Vonage). So there is no way to differentiate them. Gary Thom The palest ink is better than the best memory. - Chinese Proverb

                T Offline
                T Offline
                Tom Archer
                wrote on last edited by
                #12

                I've been thinking of getting a Vonage system for some time - I especially like the idea of having numbers from anywhere in the country for my clients to use. How's your experience been with them? What plan did you get and how has it worked out? Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                G 1 Reply Last reply
                0
                • G Gary Thom

                  Actually it is now possible to give up your land line and have the number transfered to your cell phone. It is also possible to do this to VOIP like Vonage (I did this, moving my POTS telephone number to Vonage). So there is no way to differentiate them. Gary Thom The palest ink is better than the best memory. - Chinese Proverb

                  B Offline
                  B Offline
                  Brian Delahunty
                  wrote on last edited by
                  #13

                  At the moment I'll just settle for validating that the number is in the correct form. Is there a certain number of digits in the number? Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
                  http://www.briandela.com/pictures Now with a pictures section :-D
                  http://www.briandela.com/rss/newsrss.xml RSS Feed

                  1 Reply Last reply
                  0
                  • C Chris Maunder

                    You crazy Atlanta types. :) cheers, Chris Maunder

                    T Offline
                    T Offline
                    Tom Archer
                    wrote on last edited by
                    #14

                    Now you see why a previous mayor stated that Atlanta is "the city that is too busy to hate". We're just too damn busy sitting around picking out phone numbers to get into the whole hatred and anger thang. :-D Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                    D 1 Reply Last reply
                    0
                    • T Tom Archer

                      In the US, your area code is dictated where you live - not by the type of phone you have. Also, in larger cities - such as Atlanta, NY, etc. - where multiple area codes exists and 10-digit dialing is mandatory, you have your choice of what area code you want. Rearding "1" that's for any long distance call. 011 is for international calls. Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                      B Offline
                      B Offline
                      Brian Delahunty
                      wrote on last edited by
                      #15

                      Tom Archer wrote: Rearding "1" that's for any long distance call. 011 is for international calls. Yeah. The rest of the world seem to use 00 for international dialing and the US use 01... the "1" I was referring to is the international dialing code for the US... so if I wanted to ring a US number I'd dial 001 .... but in the validation I'm doing I'm ignoring the 00... so it would just be 1. Over here, and all over europe, you also drop the 0 prefix that all numbers have... e.g. 0871234567 becomes 00353871234567.. dropping the first 0. Are US and Canadian numbers like this also? Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
                      http://www.briandela.com/pictures Now with a pictures section :-D
                      http://www.briandela.com/rss/newsrss.xml RSS Feed

                      T 1 Reply Last reply
                      0
                      • T Tom Archer

                        I worked for VeriSign - which does a lot of mobile phone billing - so I'll ping my former boss and see if he knows the answer to your main question of how to validate US mobile phone numbers. Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                        B Offline
                        B Offline
                        Brian Delahunty
                        wrote on last edited by
                        #16

                        Cool. Thanks Tom. I appreciate that. Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
                        http://www.briandela.com/pictures Now with a pictures section :-D
                        http://www.briandela.com/rss/newsrss.xml RSS Feed

                        T 1 Reply Last reply
                        0
                        • T Tom Archer

                          Actually, that's only true in smaller cities. In larger cities, you get your choice of area codes related to that city. That's why in Atlanta, one person might have several phone numbers with each having a different area code - 404, 770, 678, etc. Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                          W Offline
                          W Offline
                          wrykyn
                          wrote on last edited by
                          #17

                          Actually its true even of smaller cities. Here in Logan I know people who have area codes of 435 , 801 and 825. And its a really tiny town. You can get from one end to another in 15 mins flat. Go figure ! "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."

                          T 1 Reply Last reply
                          0
                          • T Tom Archer

                            Now you see why a previous mayor stated that Atlanta is "the city that is too busy to hate". We're just too damn busy sitting around picking out phone numbers to get into the whole hatred and anger thang. :-D Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                            D Offline
                            D Offline
                            David Stone
                            wrote on last edited by
                            #18

                            whole hatred and anger thang. I can just hear a Georgian saying that too. :rolleyes: Did Krista get the invite I sent her? :-D Since she's on Yahoo, it might have gone to her bulk mail folder...may want to have her check. :)


                            Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?

                            T 2 Replies Last reply
                            0
                            • D David Stone

                              whole hatred and anger thang. I can just hear a Georgian saying that too. :rolleyes: Did Krista get the invite I sent her? :-D Since she's on Yahoo, it might have gone to her bulk mail folder...may want to have her check. :)


                              Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?

                              T Offline
                              T Offline
                              Tom Archer
                              wrote on last edited by
                              #19

                              David Stone wrote: Did Krista get the invite I sent her? She's still in bed :) , but I told her last night to be on the lookout for it and she's definitely stoked! Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                              D 1 Reply Last reply
                              0
                              • W wrykyn

                                Actually its true even of smaller cities. Here in Logan I know people who have area codes of 435 , 801 and 825. And its a really tiny town. You can get from one end to another in 15 mins flat. Go figure ! "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."

                                T Offline
                                T Offline
                                Tom Archer
                                wrote on last edited by
                                #20

                                That's probably because the speed at which area codes get used up has to do with the breadth of coverage for that area code. Therefore, in your case the area codes are being used by so many other cities that you've run out of numbers and had to add area codes. Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                                1 Reply Last reply
                                0
                                • B Brian Delahunty

                                  Tom Archer wrote: Rearding "1" that's for any long distance call. 011 is for international calls. Yeah. The rest of the world seem to use 00 for international dialing and the US use 01... the "1" I was referring to is the international dialing code for the US... so if I wanted to ring a US number I'd dial 001 .... but in the validation I'm doing I'm ignoring the 00... so it would just be 1. Over here, and all over europe, you also drop the 0 prefix that all numbers have... e.g. 0871234567 becomes 00353871234567.. dropping the first 0. Are US and Canadian numbers like this also? Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
                                  http://www.briandela.com/pictures Now with a pictures section :-D
                                  http://www.briandela.com/rss/newsrss.xml RSS Feed

                                  T Offline
                                  T Offline
                                  Tom Archer
                                  wrote on last edited by
                                  #21

                                  Brian Delahunty wrote: Over here, and all over europe, you also drop the 0 prefix that all numbers have... e.g. 0871234567 becomes 00353871234567.. dropping the first 0. Are US and Canadian numbers like this also? The only prefix we have to do is the "1" if it's long distance. When I was a kid that meant any number having a different area code. However, now that many area codes have been exhausted such that multiple area codes have to be used for a single area, it can be confusing whether or not you need to use a "1". For example, when I go to Microsoft, I always have to look up which numbers I can dial with 10-digit dialing versus which are long-distance and require the "1". Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                                  B M 2 Replies Last reply
                                  0
                                  • D David Stone

                                    whole hatred and anger thang. I can just hear a Georgian saying that too. :rolleyes: Did Krista get the invite I sent her? :-D Since she's on Yahoo, it might have gone to her bulk mail folder...may want to have her check. :)


                                    Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?

                                    T Offline
                                    T Offline
                                    Tom Archer
                                    wrote on last edited by
                                    #22

                                    David Stone wrote: I can just hear a Georgian saying that too. Actually, I was doing the exagerated "cool, black" talk. :) After I wrote it, I figured though that it would be taken as a Georgian bit :) Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                                    D 1 Reply Last reply
                                    0
                                    • T Tom Archer

                                      David Stone wrote: I can just hear a Georgian saying that too. Actually, I was doing the exagerated "cool, black" talk. :) After I wrote it, I figured though that it would be taken as a Georgian bit :) Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                                      D Offline
                                      D Offline
                                      David Stone
                                      wrote on last edited by
                                      #23

                                      I figured though that it would be taken as a Georgian bit You guys just have that twang to your voice that's kinda irritating. ;) The new girl at our local Blockbuster just moved here from Georgia. She's got this really thick accent. It's just like listening to Shakespeare* , you have to concentrate on every syllable... *Well, 'cept for the fact that Shakespeare was brilliant. ;P


                                      Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?

                                      1 Reply Last reply
                                      0
                                      • T Tom Archer

                                        Brian Delahunty wrote: Over here, and all over europe, you also drop the 0 prefix that all numbers have... e.g. 0871234567 becomes 00353871234567.. dropping the first 0. Are US and Canadian numbers like this also? The only prefix we have to do is the "1" if it's long distance. When I was a kid that meant any number having a different area code. However, now that many area codes have been exhausted such that multiple area codes have to be used for a single area, it can be confusing whether or not you need to use a "1". For example, when I go to Microsoft, I always have to look up which numbers I can dial with 10-digit dialing versus which are long-distance and require the "1". Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                                        B Offline
                                        B Offline
                                        Brian Delahunty
                                        wrote on last edited by
                                        #24

                                        We don't add a number if it's long distance. E.g. My local area code is 051... so say I want to ring 05154321 I just dial 54321 .... to ring a number in a different area code, say area code 053 and the number is 54321, i'd just dial 05354321 ... I don't add a prefix... But with international numbers we add a 00 + country code (which for the US is 1) + area code + the number. So... am I correct is thinking that US area codes also start with a 0 (I presume I'll drop this 0 for internationally formatted number)? Christ.. the damn US like to do everything different.. just look at ye're mobile phone technology... Ye use CDMA and TDMA whereas the rest of the world use GSM/UMTS (although GSM is sortof TDMA) and any parts of the US that do use GSM use it on 1900Mhz whereas the rest of the world have more or less standardised on 1800Mhz for GSM these days. :rolleyes: Ah well. In Ireland we drive on the left had side... going against the grain as regards europe. So we all have our problems :sigh: Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
                                        http://www.briandela.com/pictures Now with a pictures section :-D
                                        http://www.briandela.com/rss/newsrss.xml RSS Feed

                                        1 Reply Last reply
                                        0
                                        • T Tom Archer

                                          David Stone wrote: Did Krista get the invite I sent her? She's still in bed :) , but I told her last night to be on the lookout for it and she's definitely stoked! Cheers, Tom Archer "Use what talents you possess. The woods would be very silent if no birds sang there except those that sang best." - William Blake * Inside C# -Second Edition * Visual C++.NET Bible * Extending MFC Applications with the .NET Framework

                                          D Offline
                                          D Offline
                                          David Stone
                                          wrote on last edited by
                                          #25

                                          She's still in bed, but I told her last night to be on the lookout for it and she's definitely stoked! I think it's kinda funny that your wife is nearly as famous as you are in the developer community. :) Krista is one cool lady, Tom. Keep her around for a while, eh? ;)


                                          Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?

                                          T 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups