Community Groups are officially here!
We've released Groups, a new feature that enables us to connect community members of similar industries and interests in a shared, private space. You can check out all of the details here, including information about who can join, how to join, and what Groups are currently offered. Please leave your feedback through this Community Groups Feedback Survey.

Regex to match one of a list of zip codes

jzadra
jzadra Salt Lake City, UtahCommunity Member Qubie ✭

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.