-12至+14 闭区间,小数位只能是(0.25,0.5,0.50,0.75,0.0,0.00) 前面的正负符号可选
^(([-](([0-9])|([1][0-1]))|[+]?([0-9]|([1][0-3])))([.]([2][5]|[5][0]?|[7][5]|[0][0]?))?|([-][1][2]|[+]?[1][4])([.][0][0]?)?)$
正则在线测试 http://tool.chinaz.com/regex/
-12至+14 闭区间,小数位只能是(0.25,0.5,0.50,0.75,0.0,0.00) 前面的正负符号可选
^(([-](([0-9])|([1][0-1]))|[+]?([0-9]|([1][0-3])))([.]([2][5]|[5][0]?|[7][5]|[0][0]?))?|([-][1][2]|[+]?[1][4])([.][0][0]?)?)$
正则在线测试 http://tool.chinaz.com/regex/
转载于:https://www.cnblogs.com/IT-Bear/archive/2013/01/22/2871755.html