常用正则表达式

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

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

原文地址:https://www.cnblogs.com/linhuide/p/7373209.html