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
-1
votes
1 answer

How can we retrieve mobile phone number & IMEI details using IBM Worklight?

Are there API's available in Worklight so that we can retrieve mobile phone number & IMEI details using IBM Worklight ??
Vinny
  • 1
  • 1
-1
votes
1 answer

How to get one number from PhoneNumberChooserTask

Is there any simply way to get one contact (name and number) from PhoneNumberChooserTask and save it to String without using method .show()? Thanks for any help!
-1
votes
1 answer

Formating a phone number in c#

I'm trying to output a phone number in the format of (###) - (#######) in C# . I did look up the String.Format() ,but never worked for my code. Any ideas will be appreciated ,thanks. I forgot to mention that I can not use arrays as I didn't reach…
sunflower
  • 501
  • 1
  • 4
  • 14
-1
votes
4 answers

Remove spaces from a integer - Java

How would I go about changing an integer like '905 123 7023' into something like '9051237023'. The assignment is supposed to determine if the phone number inputed is a real phone number. I was going to use this: int phoneNumber; // Code that turns…
Jordan.McBride
  • 267
  • 2
  • 7
  • 20
-1
votes
1 answer

Regex to validate 13 digit telephone number is numeric and can contain maximum of 3 spaces

I would like to validate a telephone number which can contain 10 to 13 digit numbers and can contain 0 to 3 spaces (can come anywhere in the data). Please let me know how to do it? I tried using regex ^(\d*\s){0,3}\d*$ which works fine but I need to…
sdinreach
  • 9
  • 3
-1
votes
3 answers

Android How can I create phone number edittext

my problem is creating EditText for phone numbers on Android. I want to create EditText and when user entering phone number or letters, suggestions open drop-down list, like this: How can I do this?
erdibasak
  • 1
  • 1
  • 3
-1
votes
1 answer

Retrieve Contact name from phone number

I've been looking everywhere since the past few days to find a way to retrieve a contact name using a phone number I already have stored in a variable, unfortunately everything I found so far seems to be using deprecated functions/calls. Of Course,…
Takoyaro
  • 928
  • 7
  • 14
-1
votes
3 answers

asking for permission from the user to autodetect SIM phone number - xCode

There's a forbidden function by apple for getting a user's phone number because this may be intrusive and so on. this is the code as far as I know NSString *num = [[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"]; I was…
Jesús Ayala
  • 2,743
  • 3
  • 32
  • 48
-1
votes
4 answers

PHP - How do you randomize the last 4 digits of a phone number

How would you randomize the last 4 digits of a phone number? Given: $phone = '000-000-0000'; Results would be: $phone = '000-000-1943'; where 1943 is a random number Can this be done in a single line command using something like preg... or some…
Sammy
  • 877
  • 1
  • 10
  • 23
-1
votes
2 answers

Phone Number Auto Spacing like AddressBook on iPhone

I want to be able to replicate what the AddressBook does in Contacts app and Phone app when entering a phone number in both the keypad on the Phone app and adding a contact. I know I could do it checking each time a character is entered into the…
DotSlashSlash
  • 5,143
  • 5
  • 30
  • 32
-1
votes
5 answers

Converting a Phone Number to Letters (C#)

So for this C# class I have to have the user input a 7 digit phone number into the console. Each number is stored as a different character. Then each character is changed to a letter. There is no logic behind the letters the numbers are changed to.…
user1580598
  • 53
  • 1
  • 2
  • 9
-1
votes
1 answer

Extract (International) Mobile Phones from database

Is there an easy way of extracting international mobile phones from a database? Has anybody in their midnight surfing come accross open source software or resources that address this? Any pointers are welcome, thanks! Updates: *1: I have a database…
-1
votes
3 answers

regular expression phone number

Possible Duplicate: A comprehensive regex for phone number validation Can somebody give me the regex for phone number. It can be entered in the format of XXX-XXX-XXXX or (XXX)-XXX-XXXX or XX-XXX-XXXX or XXXXXXXXX Heres what I…
Waiwhetu
  • 21
  • 5
-2
votes
3 answers

regular expression for indian phone number

am looking for the regular expression of indian phone number the regular expression should allow all the following formats. for landline no 0802404408 080-2404408 +91802404408 +91-802404408 for mobile…
shanish
  • 1,964
  • 12
  • 35
  • 62
-2
votes
1 answer

How to remove "rubbish" from column to stay only phone number in SQL?

I have table in sql like below: PHONE_NUMBER -------- ppa:+77845678021@abc.gbc443.gbc356.7kffooopppp.deu tel:+77695002395 .... As you can see I have in COL1 phone numbers with a lot of "rubbish" and I need to convert values in that column to…
dingaro
  • 2,156
  • 9
  • 29