Phone number format and validation library

Bill the Lizard picture Bill the Lizard · Feb 1, 2009 · Viewed 24.7k times · Source

This question asking for a phone number format API in Java got me wondering why such an API doesn't seem to exist. Given the number of validation classes available under Apache Commons, I would have thought such an API would be included.

My question is, does anyone know of a phone number formatting/validation library available in any language that could be used as a model for a small Java open source project? Also, other than the large number of different phone number formats used throughout the world, does anyone know of any reason that such a project would be infeasible?

Answer

Bill the Lizard picture Bill the Lizard · Jan 5, 2011

Google recently released libphonenumber for parsing, formatting, storing and validating international phone numbers.