电话号码国家/地区代码清单 [英] List of phone number country codes

查看:832
本文介绍了电话号码国家/地区代码清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此 Wikipedia条目中,我发现ITU电信标准化部门(ITU-T)正在提供此类国家/地区电话代码清单.

On this Wikipedia entry I found out that ITU Telecommunication Standardization Sector (ITU-T) is providing such list of country calling codes.

这里是pdf: http://www.itu.int/dms_pub/itu-t/opb/sp/T-SP-E.164D-2009-PDF-E.pdf

我想知道在xml文件或类似文件中的哪里找到它?我需要用javascript和c#找出电话号码来自哪个国家.

I wonder where to find this in a xml file or similar? I need to do find out which country a phone number is from, both in javascript and c#.

推荐答案

有一个带有正则表达式的Excel文件

There is an Excel file with regexps here. You can easily "convert" it to XML and you will be able to determine country by the full phone number.

UPD:我4年前引用的文件不再可用.我建议使用 Google的libphone号码.

UPD: The file that I referenced 4 years ago is no longer accessible. I would recommend using Google's libphonenumber.

从电话号码[libphonenumber]中提取代码国家/地区的答案将为您显示从电话号码接收国家/地区代码的正确方法.

The answer to Extract code country from phone number [libphonenumber] will show you the proper way to receive country code from a phone number.

这篇关于电话号码国家/地区代码清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆