I have a text field that allows 11 characters. The allowed format is "yyyymmdd-nn".
The regular expression I have setup is ... "(20[1-5]\d(0|1)\d[0-3]\d-\d\d)" (the validation does not have to be exact so I am allowing some invalid dates to simplify the expression).
When I try to save this constraint I get the error "The value provided failed to satisfy the constraint on the field".
First question: This field is not required so do I have to add something to the regular expression to specify this?
Assuming I might have to do that I also tried ^(20[1-5]\d(0|1)\d[0-3]\d-\d\d)?$. But this also resulted in the same message.
What am I doing wrong here?