身份证名字校验正则

83 阅读1分钟
var reg = /^(?=^[\u4e00-\u9fa5]+)(?!.*(·){2,})(?!.*(·)$)[·\u4e00-\u9fa5]{2,20}$/
 reg.test('迪丽热巴·迪力木拉提')