i have a text question type for client identification number which i used regex code to allow for alphanumerict entry as well as number of characters but unable to use special characters like hyphen (-) as a saparator between alphabets and numbers.
Example of ID Number looks like GHA-123456789-8 and the regex code is regex(.,‘[A-Za-z0-9]{13}’)
You can mask the special regex meaning of a character with a \, e.g. \- or \.
1 Like
@vibrantfield, you should be able to do it as outlined in our support article Restricting Text Responses With Regular Expressions.
You should be able to find other discussions on regex here.