Get the latest tech news

How to untangle phone numbers


Have you ever noticed how everyone writes phone numbers differently? This becomes a real problem when you're trying to store phone numbers in a database and need to search for them. I'll explain why you should normalize phone numbers and how to do it.

But when asked to enter their phone number in a form field, most people would write it in their local convention or even personal preference. I'll focus on the vast majority of cases where your main enemies are inconsistencies in the way phone numbers are written. For the weirdest local edge cases, take a look at the phone number philosophy section at the end of this article.

Get the Android app

Or read this on Hacker News