--- title: "Hong Kong Identity Card Number" slug: "hong-kong-identity-card-number" 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:05Z published: 2026-09-02T05:56:05Z canonical: "docs.trellix.com/hong-kong-identity-card-number" --- > ## 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. # Hong Kong Identity Card Number Hong Kong Identity Card Number identifies a maximum of 2 alphabetical characters and a 6 numeric digit number. The minimum length is 7 and the maximum length is 8. ### Validator **Hong Kong Identity Card Number** - Validates Hong Kong Identity Card Number (HKID) check digit. ### Matched expressions | Regex expressions | Description | Score | | --- | --- | --- | | `\b[A-Z]\d{6}[\(][(A-Z0-9][\)]` | Matches a 7-digit string of the format CNNNNNN. | 1 | | `\b[A-Z][A-Z]\d{6}\(\d\)` | Matches an 8-digit string of the format CCNNNNNN. | 1 | ### Ignored expressions None