Use country-specific examples
Postal code validation should be tested with real-looking samples from each target market. Include numeric ZIP codes, alphanumeric postcodes, short postal codes, and countries where postal codes may be optional.
Connect regex and address fixtures
Generate addresses for a country, copy the postal code values, and run them through your regex patterns before using those rules in production forms.