TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 acron0大约 13 年前
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 条评论

DanBC大约 13 年前
(<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>)
kellros大约 13 年前
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_1大约 13 年前
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 未加载