Hello,
I have a rule for bank accounts set as ^[0-9]{6,8}$ in validator-rules.xml
That is to say the account number is 6 to 8 digits long and takes in numbers 0-9. The full text is as under:
<constant><constant-name>accountno</constant-name> <constant-value>^[0-9]{6,8}$</constant-value></constant>
I want to add in an additional constraint that the account number should be non-zero; so someone should not try entering in 000000, 0000000 or 00000000 since the current regex above will allow these to be entered.
Can you please suggest the change required to the regex
pattern to achieve this.
Thanks.
P.S: Corresponding validation.xml and other files are set up correctly.