Questions tagged [phone-number]

A telephone number or phone number is a sequence of digits used to call from one telephone line to another in a public switched telephone network(PSTN). When telephone numbers were invented, they were short — as few as one, two or three digits — and were given orally to a switchboard operator. As phone systems have grown and interconnected to encompass the world, telephone numbers have become longer.

A telephone number or phone number is a sequence of digits used to call from one telephone line to another in a public switched telephone network. When telephone numbers were invented, they were short — as few as one, two or three digits — and were given orally to a switchboard operator. As phone systems have grown and interconnected to encompass the world, telephone numbers have become longer. In addition to telephones, they now access other devices, such as computers and fax machines.

Telephone numbers must not be stored using numerical data types.

The format of telephone numbers internationally follows ITU-T Recommendation E.164, described here.

This is a useful reference for people creating software to handle telephone numbers: Falsehoods Programmers Believe About Phone Numbers.

1228 questions
0
votes
1 answer

Get all phone numbers from contacts

I use the following code to retrieve all phone number from contacts. Cursor c = context.getContentResolver().query( Data.CONTENT_URI, new String[] { Phone.NUMBER }, …
Jett Hsieh
  • 3,159
  • 27
  • 33
0
votes
3 answers

Formatting mobile phone number in PHP

I've been racking my brains on how to format a simple mobile phone number but can't think on how to do it. A friend said to me I could use the preg_replace function but am unsure as I've read up on it but not familiar with it. Basically what I want…
GeordieDave1980
  • 589
  • 4
  • 11
  • 25
0
votes
1 answer

android phone number invalid address

In android phone if we enter the phone number as English alphabet (eg agchge) it says invalid address. If I enter English alphabet+some numbers(eg 232as55) it accepts. Please let me know what are the rules to check the entered phone number is…
user1123931
  • 479
  • 1
  • 8
  • 24
0
votes
1 answer

How to format NSString into a phone number in the USA?

I have a simple app that helps recruiters collect information while at an event. One form field was for a phone number, and I wanted a simple way to reformat the phone number as the user types. The phone number should evolve as the user types, so…
bryanjclark
  • 6,247
  • 2
  • 35
  • 68
0
votes
1 answer

Devex TextEdit Input Mask Regex for US Phone Numbers

I'm using a Devex TextEdit control in a WInForms application. I want to use a regular expression mask on the control for formatting US phone numbers. I'm currently using this: ((\d{3}))-(\d{3})-(\d{4}) x(\d*) (888) 555-1212 x235 I want to make the…
Paul Perrick
  • 496
  • 9
  • 22
0
votes
2 answers

Phone number validation in jquery

I use the following function to validate the a phone number textbox. It works fine. This function allow to enter only digits, but if I Enter the text box, the entries look like 1111111. But I need the entries look like 111-111-1111 111111. How can I…
User
  • 1,644
  • 10
  • 40
  • 64
0
votes
1 answer

Get phonenumber from addressbook for two textfield

I followed Apple Address Book Programming Guide for iOS to get phonenumber from addressbook to my UITextField. But I have two UITextField and doesn't know how to implement same function to second textfield. Presenting the people picker -…
Pavel Kaljunen
  • 1,291
  • 2
  • 26
  • 53
0
votes
1 answer

iOS - detect the phone number / email address of the current device?

If I have users using an app and I need to know their phone number of their iPhone, or their email that they use for iMessages (if it's an iTouch or something) can I detect that in anyway?
Albert Renshaw
  • 17,282
  • 18
  • 107
  • 195
0
votes
1 answer

iPhone phone number format NSFormatter

I'm copying phone number from iPhone address book to a text field. In text field it is showing as 1 (234) 567-8901. I want format it to 12345678901. Any help?
jack
  • 73
  • 1
  • 10
0
votes
2 answers

Jquery masked input -phone number not working while edit

I'm having a little issue with a masked input with jquery: I have a phonenumber text input, I masked it like $("#phone").mask("9999-9999999"); It works great but when i am trying to populate value in phone number field while editing,it is not…
phpwomen
  • 3
  • 10
0
votes
3 answers

Regex phone validation

I have created a reg Exp, which basically allows all formats I like it to allow. However, there still is a little problem with the ()... ^\(?(\+?\d+)?\)? ?\d*(-?\d{2,3} ?){0,4}$ This would be valid: (+356-123 456 78, however it shouldn't.... same…
Jeffrey
  • 1,766
  • 2
  • 24
  • 44
0
votes
1 answer

Tablet and phone text link

My website HTML contains a phone number as a text. So, the iPad tablet interprets that as a phone - and turns it into an underline blue link. Is it possible to format phone number to a different style?
tester2001
  • 1,053
  • 3
  • 14
  • 24
0
votes
1 answer

Fetching Phone Number from Contacts based on Name Android

I am developing an application, where I need to fetch the phone number from the contacts corresponding to the name provided. I have tried many codes but none of them seem to work. Here is the code I'm currently using now public static String…
sarveshs
  • 68
  • 1
  • 2
  • 9
0
votes
2 answers

Extract substring out of a user input phone number using Javascript

I am getting phone number input from user as +XXX-X-XXX-XXXX that (+XXX as country code), (X as city Code), (XXX as 1st 3 digits) and , (XXX as 2nd 4 digits). I used regular expression to confirm the entry as in following code; function…
AbdulAziz
  • 5,868
  • 14
  • 56
  • 77
-1
votes
2 answers

iphone sim number

Possible Duplicate: Programmatically get own phone number in iPhone OS How do I get the phone number in iPhone?
Raju
  • 3,459
  • 12
  • 37
  • 30