常用正则表达式

1、正实数  ^(0|[1-9]\d*)(\.\d*)?$

2、正整数  ^[+]{0,1}(\d+)$

posted @ 2017-08-16 14:25  lhd0525  阅读(111)  评论(0)    收藏  举报