TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Is there a standard for representing phone numbers in text?

2 pointsby acron0about 13 years ago
I'm stuck as to the "best" way to represent my UK phone number in an e-mail and I am wondering if there is a standard way.<p>Currently I have "(+44) 01234567890", but I have seen...<p>..."+44 1234 567890" ..."+44 (0)1234 567890" ..."+44.1234 567890" ..."44-1234-567-890"<p>and various combinations.<p>I'd be interested to see the regex involved in things like Skype's phone number plugin if there is no standard... :\

3 comments

DanBCabout 13 years ago
(<a href="http://blog.stevenlevithan.com/archives/validate-phone-number" rel="nofollow">http://blog.stevenlevithan.com/archives/validate-phone-numbe...</a>)<p>(<a href="http://en.wikipedia.org/wiki/E.164" rel="nofollow">http://en.wikipedia.org/wiki/E.164</a>)<p>(<a href="http://en.wikipedia.org/wiki/Telephone_number" rel="nofollow">http://en.wikipedia.org/wiki/Telephone_number</a>)<p>(<a href="http://en.wikipedia.org/wiki/Telephone_numbering_plan" rel="nofollow">http://en.wikipedia.org/wiki/Telephone_numbering_plan</a>)
kellrosabout 13 years ago
The problem is that country codes isn't standardized. The + (plus) denotes that you need to enter your country code, ex to call your number I would dial 27441234567890 (27 being South Africa). Albeit in generally country codes are 4 characters long with leading zeroes, leading zeroes of local numbers are also chopped off. The following format pretty much represents the majority of the numbers out there (+:calling country code)(country code)(region code)(area code)(local number), afaik there are some countries without country codes too.
评论 #3693710 未加载
freestyler_1about 13 years ago
I looked deeper into this and found the good way to write down the number.<p>I was wrong earlier. Here goes example: +44(0)1234 567890 The + is the international access number (from the country you call from)which is 00 is my country The zero between brackets is to show the international number and the national number, people in your own country can call 01234567890 and people if I were to call you I would dial 00441234567890. ( 00 is the international acces code here)
评论 #3693996 未加载