piighost/es-phone
Spanish phone number: an optional +34, then nine digits starting 6 or 7 for mobiles and 8 or 9 for landlines. Nine bare digits also match, so it competes with any other nine-digit shape, the US bank routing number in particular.
Label: ES_PHONE
Pattern (?<![\w+])(?:\+34[\s.-]?)?[6-9](?:[\s.-]?\d){8}(?!\w)
Must be caught Llama al +34 612 34 56 78 por la mañana. → +34 612 34 56 78Oficina 912 345 678 de 9 a 14. → 912 345 678
Must be left alone Llama al 512 345 67812 34 56
Tags: es, contact
Download the detector as TOML
Used by
piighost/es — Spain: phone, postal code, the DNI and NIE identity numbers and the CIF company 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/es-passport · All patterns in the catalogue · piighost/es-postal →