This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Policy to check vale

Hi all,

is there a way to properly set a policy for a given value being digits?

I successfully set the policy to validate an attribute saying "must be: {4 required [0-9} which is working fine. However, I also need to check that there is no 0 in the beginning.

Actually it would need to be a value containing 4 digits between 0 and 9, larger than 999 and smaller than 10000 without a leading zero so everything between 1000 and 9999.