I have a field constraint of \w{2}-\d{2}-\d{3}-\d{2}-\d|\w{2}-\d{2}-\d{3}-\d{2}-\w\d to control field entries that should look like this: NE-33-042-12-W4
I realize now that the first part (the "NE") could sometimes need to be just N. So I researched regular expressions and saw that I should be able to use "\w{1,2}" to control allowing one or two characters. I tried it but it doesn't work.
Could someone tell me what I should enter to make it allow 1 or 2 characters?
Thx, Connie