js 常用正则表达式(不断维护中)

身份证:pattern="/^[1-9]{1}[0-9]{14}$|^[1-9]{1}[0-9]{16}([0-9]|[xX])$/" 

原文地址:https://www.cnblogs.com/imsomnus/p/6233206.html