日期:2014-05-17 浏览次数:20822 次
<fieldname="字段名"> <field-validator type="int"> <paramname="min">0</param> <paramname="max">255</param> <message>必须在0至255之间</message> </field-validator>
------解决方案--------------------
*|\d{1,2}|1\d\d|2[0-4]\d|25[0-5]
------解决方案--------------------
*|\d{1,2}|1\d\d|2[0-4]\d|25[0-5]
------解决方案--------------------
Mark 一下。*|\d{1,2}|1\d\d|2[0-4]\d|25[0-5]
------解决方案--------------------
*|([0-9]{1}|[1-9]{1}{0-9}{1}|[1-2{1}[0-5]{1}[0-5]{1}])
------解决方案--------------------
"*|[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]"
------解决方案--------------------
java 里面 "\\*|[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]"
------解决方案--------------------
^(?:*|\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$
------解决方案--------------------