类型|正则|备注
---|---|
手机号| ^1[3456789]\d{9}$
身份证号| ^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}(\d|x|X)$
两位小数 | ^\d+(\.\d{1,2})?$
| 可以为整数
两位小数 | (^(\d{2,}|[1-9])+(\.\d{1,2})?$)|(^0\.((\d[1-9])|([1-9]0?))$)
| 可以为整数,最小0.01
Last active
May 6, 2020 09:22
-
-
Save GithubMrxia/cabcd06609224ca8a53bb1a8aece0e1c to your computer and use it in GitHub Desktop.
常用正则表达式
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment