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

Must be left alone

Tags: jp, location, contact

Download the detector as TOML