K
suppose 10 zipcode in an array,that zipcode only to allow
Then yes, you may pack them into the following condition for the regular expression:
/(zip1)(zip2)(zip3)/