piighost/fr-date-numeric

A date in digits, day first as France writes it: day, month and a four-digit year from 1800 to 2099, with the same separator twice, a slash, a dot or a hyphen. Like fr-date it hides a date of birth and the date of the document alike. A two-digit year is left out, since 12/03/85 is as often a reference as a date. The date of a legal text numbered before it (décret n° 2015-587 du 29/05/2015) is left out too.

Label: FR_DATE_NUMERIC

Pattern

(?<![\w/.-])(?<!\d du )(?<!\d du )(?:0?[1-9]|[12]\d|3[01])([/.-])(?:0?[1-9]|1[0-2])\1(?:1[89]|20)\d{2}(?!\w|[/.-]\d)

Must be caught

Must be left alone

Tags: fr, identity, legal, notarial, lang-fr

Download the detector as TOML

Used by

Related patterns