piighost/ch-phone
Swiss phone number, the +41 country code or the 0 trunk prefix then nine digits. Swiss writing uses the space and the slash between the area code and the number, so both are accepted as separators.
Label: CH_PHONE
Pattern (?<![\w+])(?:\+41|0)(?:[\s./-]?\d){9}(?!\w)
Must be caught Rufen Sie +41 44 668 18 00 an, bitte. → +41 44 668 18 00Mein Handy ist 079 123 45 67 tagsüber. → 079 123 45 67
Must be left alone Die Klappe ist 0123Bestellung 123456789
Tags: ch, contact
Download the detector as TOML
Used by
piighost/ch — Switzerland: phone and the AHV social insurance number, which doubles as the health 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/ch-default · All patterns in the catalogue · piighost/cl →