piighost/mx-phone
Mexican phone number: ten digits opening on an area code, with the +52 country code and the old mobile 1 both optional. Mexico dropped the 044 and 045 prefixes in 2019, so only the ten digit form is matched here.
Label: MX_PHONE
Pattern (?<![\w+])(?:\+52[\s-]?)?(?:1[\s-]?)?[2-9]\d(?:[\s-]?\d){8}(?!\w)(?![\s-]?\d)
Must be caught Llamame al +52 55 1234 5678 en la tarde. → +52 55 1234 5678El celular es 55-9876-5432 por si acaso. → 55-9876-5432
Must be left alone La extension es 1234El folio 12 3456 7890 no aplica
Tags: mx, contact
Download the detector as TOML
Used by
piighost/mx — Mexico: phone, the CURP population identifier and the RFC tax number.
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/mx-default · All patterns in the catalogue · piighost/mx-rfc →