Regular Expression not working

470
0
08-11-2016 12:13 PM
JohnDye
Occasional Contributor III

I'm using Survey123Connect to build a new survey.

I'm trying to apply a constraint to a field using the following regex:

regex('[A-Za-z]{3}[0-9]{3}$')

The result of this should be a 6-character string where the first three values must be Alpha and the second three values must be numeric. For example, ABC123 would be a valid value, as would abc123.

I've applied the expression to the field's constraint field and supplied a constraint message. Survey123Connect will then convert the form and display it without raising any issues but I can put whatever I want in the field and the constraint message is never raised.

0 Kudos
0 Replies