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

can you help me understand about fopen("contact.dll", "r");

I'm trying to implement phonebook in C using data structure. I found some source code and I'm trying to understand this code but there is really big problem I've never seen. It is dll. I googled about dll but there is nothing related about this. I…
-1
votes
1 answer

Simply, I want to get Mobile Number and show it to textView in android Studio?

Simply, I want to retrieve Mobile Number and show it to textView in android Studio? @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); …
Mukkaram Ali
  • 3
  • 1
  • 2
-1
votes
1 answer

How to convert a random telephone number from a number into words from dictionaries and how to select it from a text and convert it in python?

I am trying to convert a random telephone number from a number into words using dictionaries using the following code: dict_1 = {07: 'zero seven'} dict_2 = {2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six', 7: 'seven', 8: 'eight'} dict_3 = {0:…
nickyd
  • 3
  • 1
  • 3
-1
votes
1 answer

Need Code for US Phone numbers using Dashes or Parentheses but not spaces

I am new to RegEx and need some guidance. Right now I have the following validation for phone numbers: (\d{3}) ?\d{3}( |-)?\d{4}|^\d{3}( |-)?\d{3}( |-)?\d{4} Unfortunately, the system I am importing the results into does not think favorably of the…
-1
votes
1 answer

Change format of phone number

I have string with phone number that I need to transform from one format to another. Example: "02030266079" => "0203 026 6079" I tried: $num = "02030266079"; $transformed= preg_replace("/^(/d{4})(/d{3})(/d{4})$/", "$1 $2 $3", $num); But nothing…
-1
votes
2 answers

Textexpander with Python to match phone numbers

I want to use Textexpander and Python to match phone numbers via the clipboard: Click a phone number formated like 0798008080 in one application, copy the number and insert the clipboard content with a Textexpander-Shortcut in another application…
NiWy
  • 11
  • 1
-1
votes
1 answer

Formatting phone numbers

Our customers often fill out "incorrect" formatted phone-numbers. Do anyone know if there is any lib or standard to convert numbers into a more international style? This is a Swedish example but we have customers around the globe and i don't what to…
Sven
  • 1,935
  • 2
  • 13
  • 7
-1
votes
1 answer

php email sanitize and validation not working

I have this php code if(filter_var($_POST['username'], FILTER_SANITIZE_EMAIL) !== false && filter_var($_POST['username'], FILTER_VALIDATE_EMAIL) !== false) { echo 'it is mail'; }else{ echo 'is is phone'; …
shalvasoft
  • 89
  • 1
  • 9
-1
votes
1 answer

Is there a way to get phone number of facebook's contacts in Windows Phone 8

My app is getting all phone's numbers from user's contact list. But I saw that the numbers that are from facebook are not showed. I made a quick research, and all the answers to this questions was the following: You can only get friends who…
-1
votes
1 answer

Get Local Phone Number Objective-C For Validation

I need the get Sim card phone number from iphone for validate the number.How can I do that ?
Murat KAYA
  • 23
  • 7
-1
votes
2 answers

Regular expression 10 digit phone number capture

I am trying to match 10 digit phone numbers (that start with 2-9) that are on word boundaries (i.e. there is white space around them.) Sometimes the above phone numbers are prefixed with an +1 or 1 I would like it to still match the 10 digit phone…
user603749
  • 1,638
  • 2
  • 24
  • 36
-1
votes
1 answer

Need to create a special regex that detects all possible phone number formats

Need a regex that can sift through walls of texts in excel and pick up numbers. Each cell in excel sheet has at least 200-1500 characters with lots of numbers in them so i can't use [^0-9\n] as it simply places all digits together I need a regex…
-1
votes
4 answers

Java - how to check phone operator by phone number

Is there possibility to find out the operator name by phone number? Of course it's about the mobile phone numbers. Country is easy because of the prefix. But what about the operators?
advena
  • 83
  • 13
-1
votes
1 answer

Which format mask of phone number is safe for input for all countries?

I am making an input form for registering employees. I thought the number format in any country would fit in /\+(\d+)-\d\d\d-\d\d\d-\d\d\d\d/, where (\d+) is country code I assume to have different length and next goes exactly 10 digits. I need to…
Gherman
  • 6,768
  • 10
  • 48
  • 75
-1
votes
2 answers

Finding owner's phone number in 2014?

I've been researching how to find the owner phone number of a iOS device, but with no luck. There are post all around showing thirdparty frameworks that allow to do that, but are rejected from Apple. In my app I'm accessing to the AddressBook…
Pau Senabre
  • 4,155
  • 2
  • 27
  • 36