1 /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/
亲测,改进版。过滤0.0和0.00两种情况!
转载自:https://blog.csdn.net/qq616592958/article/details/102466773