Edit the script so that var regex includes only the patterns you would like to use. New additions to the array should follow the following format:
“QUESTION_ID”: [new RegExp(“PATTERN”), “OPTIONAL ERROR MESSAGE”]
For example, if you want to validate that your question answer contains the string “abc”:
“1737556”: [new RegExp(“[sS]*abc[sS]*”), “This ID is not valid.”]
This COV script has a wide variety of uses from secondary ID validation to enabling proper procedures and protocol. Any RegEx pattern can be used to authenticate the given question answer. If you have trouble implementing this script or are unsure if it would work for your use case, contact us via email or LiveChat.