常见正则表达式
摘要:
中文:/^[\u4e00-\u9fa5]*$/ 中文、符号:/^[(\u4e00-\u9fa5|\s)]*$/ 中文、字母:/^[\u4e00-\u9fa5|a-zA-Z]+$/ 数字:/^[+]{0,1}(\d+)$|^[+]{0,1}(\d+\.\d+)$/ 数字、字母:/^[0-9a-zA-Z|^\s]+$/ 数字、符号:/^[+]{0,1}(\d){1,3}([-]?((\d)){1,1... 阅读全文
posted @ 2018-06-15 11:27 狗狗汪汪叫 阅读(180) 评论(0) 推荐(0) 编辑