regex for zip-code

Posted by Monu on Stack Overflow See other posts from Stack Overflow or by Monu
Published on 2010-04-05T06:44:24Z Indexed on 2010/04/05 6:53 UTC
Read the original article Hit count: 182

Filed under:

I need Regex which can satisfy all my three condtions for zip-code. E.g-

  1. 12345
  2. 12345-6789
  3. 12345 1234

Any pointers and suggestion would be much appreciated. Thanks !

© Stack Overflow or respective owner

Related posts about regex