node-modules / China Mobile Phone Regexp
Licence: mit
The regular expressions for China mobile phone number.
Stars: ✭ 61
Programming Languages
javascript
184084 projects - #8 most used programming language
china-mobile-phone-regexp
The regular expressions for China mobile phones.
Install
$ npm i china-mobile-phone-regexp --save
Usage
const phone = require('china-mobile-phone-regexp');
// Is phone number?
console.log(phone.is('13800138000'));
// Is CHINA_MOBILE phone number?
console.log(phone.is('13800138000', phone.CHINA_MOBILE));
// Is CHINA_UNICOM phone number?
console.log(phone.is('13800138000', phone.CHINA_UNICOM));
// Is CHINA_TELECOM phone number?
console.log(phone.is('13800138000', phone.CHINA_TELECOM));
Questions & Suggestions
Please open an issue here.
License
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].