I was trying to use validations using Regular expressions. The first expression should only allow text in the value 01 - 07. The value must contain the '0' at the beginning. This expression works fine. The second expression should only allow text in the range 001 - 999. However the expression I have written allows 000 - 999. Do you know how I can not allow the value 000 but allow the rest of the expression? Using
Struts 1.1.
Thanks in advance
Clinton
First Expression
<field property="rate" depends="required,mask">
<arg0 key="label.offermgmt.rate" />
<var>
<var-name>mask</var-name>
<var-value>^[0]{1}[1-7]{1}$</var-value>
</var>
</field>
Second Expression
<field property="optionSet" depends="required,mask">
<arg0 key="label.offermgmt.option" />
<var>
<var-name>mask</var-name>
<var-value>^[0-9]{1}[0-9]{1}[0-9]{1}$</var-value>
</var>
</field>