Tool Hub

郵編格式

按國家/地區郵遞區號正則表達式驗證 + 範例

驗證結果

Pattern: 5 digits

Example: 06236

使用方法

  1. Select a country from the searchable dropdown to load its postal code rules。
  2. Type a postal code into the code field。
  3. The tool shows the official regex pattern and a format example for that country。
  4. A green 'Valid' or red 'Invalid' label confirms whether the code matches the pattern。

範例

  • Selecting Germany (DE) shows the pattern \d{5} with example 10115; entering 10115 returns Valid, while entering 1011 returns Invalid。
  • Selecting Canada (CA) shows the pattern [A-Z]\d[A-Z] \d[A-Z]\d with example K1A 0A9; entering K1A 0A9 returns Valid。

生產環境使用前請驗證輸出。無擔保 — 參見 條款.