piighost/jp-postal
Japanese postal code: three digits, a dash, then four digits. The dash is what makes it safe to detect, since the same seven digits written without it would be indistinguishable from the tail of a phone number.
Label: JP_POSTAL
Pattern (?<!\w)\d{3}-\d{4}(?!\w)(?![\s.-]?\d)
Must be caught The office is at 100-0005 Chiyoda, Tokyo. → 100-0005Ship it to 530-0001 in Osaka please. → 530-0001
Must be left alone The old code was 100Range 100-00
Tags: jp, location, contact
Download the detector as TOML
Used by
piighost/jp — Japan: phone, postal code and the My Number individual identifier.
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/jp-phone · All patterns in the catalogue · piighost/jwt →