37

身份证号码的正则表达式及验证详解(JavaScript,Regex)

 6 years ago
source link: https://juejin.im/post/5aa8d89af265da23866f9669
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
简言 在做用户实名验证时,常会用到身份证号码的正则表达式及校验方案。本文列举了两种验证方案,大家可以根据自己的项目实际情况,选择适合的方案。 身份证号码说明 居民身份证号码,正确、正式的称谓应该是“公民身份号码”。根据【中华人民共和国国家标准 GB 1164

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK