piighost/phone-international
Phone number in international form: a + sign, a country code, then groups of digits. The area code may be parenthesised, and the parentheses are paired so a number written inside brackets does not swallow one. Deliberately loose about grouping, so it overlaps with every national phone pattern: do not put both in the same detector.
Label: PHONE_INTERNATIONAL
Pattern (?<![\w+])\+\d{1,3}[\s.-]?(?:\(\d{1,4}\)|\d{1,4})(?:[\s.-]?\d{1,4}){1,4}(?!\d)
Must be caught Call +44 20 7946 0958 during office hours. → +44 20 7946 0958Fax: +49 (30) 1234567 → +49 (30) 1234567Mobile +33 6 39 98 01 → +33 6 39 98 01
Must be left alone Call 44 20 7946 0958 nowversion C+42 1234
Tags: international, contact
Download the detector as TOML
Used by
piighost/contact — How to reach a person, without knowing where they live: email, international phone, URL.
piighost/international — The `generic` group plus IPv6, international phone numbers and the ORCID researcher identifier.
Related patterns
piighost/anthropic-api-key — Anthropic API key: the sk-ant-api user prefix and the sk-ant-admin admin prefix, the two version digits left open so a…
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/payment · All patterns in the catalogue · piighost/pl →