I need to gate participants out if they enter a zip code that doesn't match a list of zip codes I have. The list may be fairly large so I don't want to do individual conditions for each one. What I'm currently attempting is a negative lookaround regex, however it doesn't seem to work. I don't know whether Qualtrics can do negative lookaround and that's the issue or whether I"m doing it wrong for the way Qualtrics expects regex to be formatted.
Currently trying the following:
"/(?!90210|24680)/gm"
Which is intended to behave so that if you enter either of those zips, you move on to the next question, but if you enter 5 digits (I have validation for US postal code turned on) that don't match either of those, you therefore match the regex and get pushed to the end of survey.
Be the first to reply!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.