piighost/fr-phone

French phone number: +33 or a leading 0, one non-zero digit, then four pairs of digits separated by optional spaces, dots or hyphens. Lookarounds replace \b so the + prefix anchors properly, and they guard the whole word rather than digits alone: otherwise ten digits in the middle of an API key get tokenised, cutting the key in two. This is the one departure from the library catalog. The +33 form only matches when the first digit follows immediately (+33639981234), not '+33 6 39...'.

Label: FR_PHONE

Pattern

(?<![\w+])(?:\+33|0)[1-9](?:[\s.-]?\d{2}){4}(?!\w)

Must be caught

Must be left alone

Tags: fr, contact

Download the detector as TOML