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

How do I use ReGex with a webpage

I just found out about Regex, so sorry if it's a noob question, but I want to use it in a webpage, so I tried it, and it didn't work. Is there a library? SDK? or line of code I am missing?? Here is the code I have, that isn't working in my…
terere
  • 1
  • 1
-2
votes
1 answer

Python phonenumbers error str has no attribute country code

I am trying to get the carrier of a phone number I am using phonenumbers in python and keep getting this error ‘str’ object has no attribute ‘country_code’ Here is my code: import phonenumbers num = input("phone number") from phonenumbers import…
-2
votes
2 answers

Convert XML-Output with more than one back referencies in a string without xml-tags only with preg_match_all

we got an XML-Output like this one: +45 354 1631616 How can I convert this in a string seperated with…
Marco A.
  • 7
  • 1
-2
votes
1 answer

How to generate a random mobile number starts with zero and have 10 digits, that starts with zero?

My Friend ask me this question and i am posting it here, if you have better approach please share String getRandomMobileNumber() { double random = Math.random(); Double randomten = random*1000000000.0; return…
Munish Chouhan
  • 318
  • 4
  • 10
-2
votes
1 answer

International phone number validation using regular expression

I am validating international phone number which may have + or 0 leading with country code and space and phone number after space for this tried reglar expression with '\s' but it is failing.Why it is failing? For eg. +65 3333311 Tried with below…
-2
votes
1 answer

two First characters in input unselectable/uneditable and must be 09

I have an input where the user can enter an phone number (national format) value. The "09" numbers are part of the phone number of the input field so the user only needs to enter the rest of the phone number. I'd like to have the "09" numbers as…
mr.sohrab
  • 51
  • 2
  • 9
-2
votes
1 answer

RegEx for cutting phone number

I just need to find phone number in description and remove it using regular expressions. Phone numbers would be in following formats: 998991234567 +998 99 123 45 67 1234567 991234567 (998)901234567 I have found following regex, but do not know…
Natlus
  • 57
  • 7
-2
votes
1 answer

What is the Phone Number format for incoming calls in India

I have an Android application that shows the location based on the area code of a caller. For example, any phone number with the area code 212 is New York. I would like to let users in India use the application. With some research it looks like…
-2
votes
1 answer

Phone number carrier API

Is there any public database containing current mobile carriers for phone numbers? I find out that there are many paid services (like numverify.com) and static (not real time updated) database from Google (libphonenumber). I am looking for free API…
tomas657
  • 5,579
  • 4
  • 16
  • 15
-2
votes
2 answers

PHP Regex for Greek mobile phone with prefix 69

I would wish a PHP regex in order to validate Greek mobile phone numbers. The number must contains 10 digits. The first two numbers must be 69xxxxxxxx
Αρης
  • 45
  • 4
-2
votes
2 answers

Regular expression to check phone number contains 10 zeroes in javascript

I have a regular expression to check phone number.It returns 'true' for 10 zeroes. How to change regular expression to return 'false' for 10 zeroes. Following is my code var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-.…
Rahul K R
  • 191
  • 4
  • 20
-2
votes
1 answer

Phone number Validation Code

Can somebody help me to validate these phone number patterns? Please see the image below to help me solve my problems.. I couldnt figure any way to do it as i am new to validation. Any help is appreciated.. Thanks I am sorry i couldnt post the…
-2
votes
1 answer

Need help creating a dynamic phone number detector?

Here's the situation: users of my app are going to create their account using their phone number only (like WhatsApp for example). So no username, password or anything like that. I'll be storing those phone numbers in my database after verification,…
Freddy Benson
  • 735
  • 4
  • 11
  • 30
-2
votes
2 answers

Facebook Android SDK - search user by phone number

I'm having some trouble with the facebook SDK on Android. I would like to search a user by his phone number. For example when I'm on my account on my computer, if I put my friend's phone number in the search field, it gives me his profil, I would…
omaflak
  • 165
  • 1
  • 1
  • 9
-2
votes
1 answer

Extract Outlook Properties of a sender of a mail

I want to extract properties, like phone number, society, email,... from an e-mail which is in my inbox. Set oOutlookmail = CreateObject("Outlook.Application") Set oMyInspectors = oOutlookmail.Inspectors Set oMail =…
hedidev1
  • 1
  • 4