I am using Pattern annotation to validate a field that will only accept values 0-25.
My solution is this below, but written in this It is not how I want. Only one problem: digit which begin with 0 or 2, so when I write 5 is incorrect.
this is my field annotated:
I am using regexr.com/ to test the correct functioning of regex matching.
How can I fix?