Top "Phone-number" questions

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).

Parse Phone Number into component parts

I need a well tested Regular Expression (.net style preferred), or some other simple bit of code that will parse …

parsing phone-number
Format phone number and hide #ERROR when return is null SSRS

I'm having an issue and everything i've tried doesn't work. I have a phone number datafield that returns numbers with …

reporting-services formatting phone-number
Validate Indian Phone number with optional +91 or 0 preceeding 10 digits

I am using following reg expression to validate Indian phone number. I want optional +91 or 0 before 10 digits of phone. How …

c# regex phone-number
Validating phone number in ruby

What are the rules for validating a North American phone number? Also, is there a regex I can use? Is …

ruby regex phone-number
Get country name from Country code in python?

I have worked with 2 python libraries: phonenumbers, pycountry. I actually could not find a way to give just country code …

python phone-number
Validating US phone number with php/regex

EDIT: I've mixed and modified two of the answers given below to form the full function which now does what …

php regex validation phone-number
iOS 7: How to get own number via private API?

Old ways don't work any more: // way 1 void *lib = dlopen("/Symbols/System/Library/Framework/CoreTelephony.framework/CoreTelephony", RTLD_LAZY); NSString* (*…

ios7 phone-number core-telephony
Automatically format phone number in EditText

In my app, the user has to enter a phone number in an EditText field using the following format: 1(515)555-5555 …

android formatting android-edittext phone-number
Formatting phone numbers based on country code

I have a database with phone numbers which I would like to format according to the country code of the …

javascript number-formatting phone-number
Faker generating strange phone numbers?

So I'm creating a database with Laravel and seeding it, and I ran into an issue where it generates a …

php phone-number faker