--- title: "Spanish ID (For Non-Residents, NIE)" slug: "spanish-id-for-non-residents-nie" tags: ["Reference", "DLP 11.10.x", "DLPD 11.10.x", "DLPE 11.10.x", "DLPMac 11.10.x", "DLPNM 11.10.x", "DLPNP 11.10.x", "DLP 11.11.x", "DLPE 11.11.x", "DLPExtn 11.11.x", "DLPNM 11.11.x", "DLPNP 11.11.x"] updated: 2026-09-02T05:56:11Z published: 2026-09-02T05:56:11Z canonical: "docs.trellix.com/spanish-id-for-non-residents-nie" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Spanish ID (For Non-Residents, NIE) The NIE is a personal, unique, and exclusive identity card that is issued to foreigners who come for economic, professional, or social reasons and are engaged in activities related to Spain and require identification in this country. ### Validator **Spanish Non-Resident ID Card** — Validates Documento Nacional de Identidad (DNI) format. ### Matched expressions | Regex expressions | Description | Score | | --- | --- | --- | | `\b(X0?\|[YZ])[0-9]{7}[A-Z]\b` | Matches a string of the format CCNNNNNNNC, which starts with alphabet "X0" or "YZ" followed by 7-digit number and ends with a character. | 1 | ### Ignored expressions **None**