Other Resources:
US post code validation
How to perform a validation on US post codes using a regular expression? For example, "12345-5434" is an valid US post code.
✍: Guest
![]()
To perform a validation on US post codes, try this regular expression:
^([0-9]{5})(-[0-9]{4})?$
2013-01-27, 0👍, 0💬
Popular Posts:
Are you having problems using regular expressions when processing text strings in your applications ...
How to capture the MSN (Microsoft Network) bot entries from Web log file? Here are some Web log file...
How to write a regular expression to parse key-value entries from Windows .INI files? Here is an exa...
How to write a regular expression to validate GUID (Globally Unique IDentifier) or UUID (Universally...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...