Questions tagged [libphonenumber]

Google's common Java, C++ and Javascript library for parsing, formatting, storing and validating international phone numbers. The Java version is optimized for running on smartphones, and is used by the Android framework since 4.0 (Ice Cream Sandwich).

libphonenumber is a library for handling phone numbers. It can parse and format phone numbers as well as provide geographical information about phone numbers.

libphonenumber is written by Google engineers and is used in Android and other Google projects.

230 questions
-3
votes
3 answers

How to extract phone number from string?

I have custom string containing text and phone number. How I can extract this number? Example text: Lorem ipsum +44 12-45-243 dolor 00(49) 812 234 234 EDIT: Phone number can be of any given format.
pixel
  • 24,905
  • 36
  • 149
  • 251
-3
votes
2 answers

Libphonenumber php

I would like to test the type of phone numbers, so i found libphonenumber-for-php. But i don't understand how to use it. In this page: https://github.com/giggsey/libphonenumber-for-php it saying that i need to install it via composer, but where? On…
DouzeBri DouzeBra
  • 117
  • 1
  • 2
  • 13
-3
votes
1 answer

Google's LibPhoneNumber package : 7777777779 and 2234567890 are invalid USA phone numbers?

Question : I am using Google's LibPhoneNumber package to validate phone numbers in Java. When the country is set to US, 7777777779 and 2234567890 are being classed as invalid numbers, but 7866438057 is valid. Why is this? I've tried reading why they…
Andy A
  • 4,191
  • 7
  • 38
  • 56
-7
votes
1 answer

Golang libphonenumber

How can I get the country code number by passing the number in golang by using this library: https://godoc.org/github.com/nyaruka/phonenumbers?
Ilie Soltanici
  • 377
  • 2
  • 16
-7
votes
1 answer

Accept mobile but not fixed-line numbers using Google's libphonenumber library

I'm using Google's libphonenumber library in order to validate mobile numbers, but I want to just accept mobile numbers and refuse fixed-line numbers. Is this possible? Here is my phone number validation code: public bool…
Mohammad
  • 2,724
  • 6
  • 29
  • 55
1 2 3
15
16