Hi - I'm trying to come up with a constraint using the regex function.
I need to restrict field input to fit with a simple alphanumeric 1km grid with letters columns from A to R along the top and numbered rows of 1 to 11.
The constraint format is a capital letter between A and R followed by a 2 digit number between 01 and 11, so that A01 and R11 pass but A2 or A12 or a2 or S11 all fail.
I have tried many combinations but not found a workable solution.
regex (., '^[A-R]{1}[01-11]{2}$') passes the test in Survey123 connect but doesn't work when published. regex (., '^[A-R]{1}\d[01-11]{2}$') fails
Any thoughts - should this be done through an input mask instead?
Many thanks
David Tipping