摘要: 一、校验数字的表达式 1 数字:^[0-9]*$ 2 n位的数字:^\d{n}$ 3 至少n位的数字:^\d{n,}$ 4 m-n位的数字:^\d{m,n}$ 5 零和非零开头的数字:^(0|[1-9][0-9]*)$ 6 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9] 阅读全文
posted @ 2017-11-09 11:41 liujiacai 阅读(232) 评论(0) 推荐(0) 编辑
摘要: Python正则表达式指南 原文:http://blog.csdn.net/qdx411324962/article/details/46799831 Python3(2):正则表达式与Python(RE)模块 原文:https://zhuanlan.zhihu.com/p/39365124 htt 阅读全文
posted @ 2017-11-09 10:38 liujiacai 阅读(229) 评论(0) 推荐(0) 编辑