摘要: 来源:https://www.jb51.net/article/115170.htm 1 用户名正则 ? 1 2 3 4 //用户名正则,4到16位(字母,数字,下划线,减号) var uPattern = /^[a-zA-Z0-9_-]{4,16}$/; //输出 true console.log 阅读全文
posted @ 2018-12-29 11:44 hao_1234_1234 阅读(312) 评论(0) 推荐(0)
摘要: 写个可以匹配一下各种特殊字符的正则表达式 来源: https://blog.csdn.net/qmdweb/article/details/80895918 2018年07月03日 11:29:25 qmdweb 阅读数:12507 ((?=[\x21-\x7e]+)[^A-Za-z0-9]) x2 阅读全文
posted @ 2018-12-29 11:42 hao_1234_1234 阅读(10679) 评论(0) 推荐(0)