I am trying to use regular expression to validate a zip code, but could not find a good solution. This is my requirements: 1. The zip code should be 5 digits. 2. The zip code should not be "00000", "88888" or "99999".
How can I do this validation in a single reqular expression?
Joined: Apr 25, 2005
Well It could be done as follows with full exception handling.
If no exception is thrown it means zip code entered is correct.