如何将手机号码拆分为国家代码、地区代码和本地号码? 例如+919567123456 拆分后
国家代码 = 91
区号 = 9567
本地号码 = 123456
最佳答案
不要维护自己的所有这些数据的表!使用“Java International Phone Number Utilities library v3.0”,https://github.com/googlei18n/libphonenumber .这是 Google 使用的,Google 会为您维护它!
https://stackoverflow.com/questions/2543938/