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
-4
votes
2 answers

Format phone number in Javascript

I need to format phone number for example by replace(): From: +48 XX XXX XX XX where X is a number. Example: +48 12 345 67 89 To: +48 XXX XXX XXX Example: +48 123 456 789 Edit: My work: First, I tried to remove the spaces in…
Weronika
  • 370
  • 1
  • 4
  • 16
-4
votes
2 answers

Regex & Phone Numbers

So I have been working on creating a regex to validate phone numbers in the following format XXX-XXX-XXXX which has been working pretty well so far, but now I'm trying to figure out how to remove the ability to enter specific numbers like…
cditomas
  • 17
  • 2
-4
votes
1 answer

how to use match cellphone number format in jquery?

my question is cellphone number format match issue. I want check format '010-1234-5678' or '010-123-4567' is correct format. I used jquery validator.js. but I don`t know 'Regular Expression'. help me please.
LV100
  • 1
  • 3
-4
votes
3 answers

Phone Regular Expression

-4
votes
2 answers

How to do Phone number format checking in javascript or jquery?

I have a form with phone number field, i need to validate it with the format on keypress. How to do this? It will be like, some one enters a special characters except ( ) - or alphabet then and there it should show an alert, and if numeric digits…
Rahul
  • 364
  • 3
  • 8
  • 21
-5
votes
1 answer

Permission to know phone number

I have an android game in play store and have around 150 active users. I am adding leaderboard in the upcoming update so that people can compete with each other. My app does not require access to any specific permission. However I want to know if…
-5
votes
1 answer

Phone number regular expressions exact format

I'm looking for a regular expression that will match any of these phone number formats but ONLY these formats. For example, (999-999-999 should not work. I know how to use ? for optional however I want the second ) to be mandatory only if the number…
-5
votes
4 answers

Formatting a Phone number

How can I format a phone number from (###)###-#### to ##########? Is there best way to do that? I can use String.Substring to get each block of numbers and then concatenate them. But, Is there any other sophisticated way of doing it?
C_sharp
  • 408
  • 5
  • 26
-5
votes
4 answers

phone number validation in js

I want to validate the phone number whose length should be between 8 and 15 and might be present one + symbol infront of the number. That means +56789765908 and 7612345678909 are valid phone number. Please help me.
Bappa
  • 799
  • 1
  • 9
  • 17
-6
votes
1 answer

Make Phone number clickable responsive

adapting a theme for a website , there is a nice top head bar with a phone number on the top right but I d like it to be clickable when people browse it on their mobile, could you help me on this ? $phone = isset(…
-7
votes
1 answer

How to use preg_match to validate Kenyan phone numbers?

I would like to add a phone number in a registration form. Users will need to input username, email, phone number and password. All these fields will be REQUIRED including the phone number. I'm based in Kenya so I would like to limit the phone…
Amos
  • 151
  • 1
  • 2
  • 16
-7
votes
3 answers

get world phone codes list

I need to get all world phone codes in my android application. Somebody know how I can do it ? I mean something like here
Rikki Tikki Tavi
  • 3,089
  • 5
  • 43
  • 81
-10
votes
3 answers

Retrieving the phone number

Where my application is installed I want to retrieve the phone number of that phone and then post it on the server. Is this possible? TelephonyManager tMgr = (TelephonyManager)mAppContext.getSystemService( Context.TELEPHONY_SERVICE);…
1 2 3
81
82