piighost/de-phone

German phone number, the +49 or 0 prefix then an area code and a subscriber number, separated by a space, a slash or a dash as German writing does. A lookbehind replaces the word boundary, which does not anchor before a + sign.

Label: DE_PHONE

Pattern

(?<![\w+])(?:\+49|0)[\s/-]?\d{2,5}[\s/-]?\d{3,10}(?!\d)

Must be caught

Must be left alone

Tags: de, contact

Download the detector as TOML