piighost/de-zip · pattern
Postal code (Germany)
German postal code, five digits, the first pair never 00. It collides span for span with the French and US postal codes, which have the same length: pick one per detector.
Label: DE_ZIP
Pattern \b(?:0[1-9]|[1-9]\d)\d{3}\b
Must be caught Berlin, 10115 Mitte. → 10115München 80331 Innenstadt → 80331
Must be left alone
Tags: de, location, contact
Download the detector as TOML
Used by
Related patterns
piighost/ar-phone : Argentine phone number, the +54 country code or the 0 trunk prefix then ten or eleven digits.
piighost/ar-postal : Argentine CPA postal code: a province letter, four digits for the town, then three letters for the block side.
piighost/at-phone : Austrian phone number, the +43 country code or the 0 trunk prefix then six to thirteen digits, since Austrian…
piighost/au-phone : Australian phone number: the +61 or leading 0 prefix, a single area or service digit, then eight digits.
piighost/au-postal : Australian postal code, anchored on the state or territory abbreviation that precedes it in an address.
piighost/be-phone : Belgian phone number, the +32 country code or the 0 trunk prefix then eight or nine digits.
← piighost/de-phone · All patterns in the catalog · piighost/dev-secrets →