I am attempting to use an answer constraint to force users to enter two letters, followed by six numbers, followed by an optional letter, all the letters should be in capitals and no spaces allowed. I am using the following regex:
^[A-Z]{2}[0-9]{6}[A-Z]{0,1}$
Could anyone shed any light as to why this is not working?
Many thanks