New Zealand National Student Number (NSN)
Detects 9- to 10-digit New Zealand National Student Numbers (NSNs) assigned by the Ministry of Education and NZQA under the Education and Training Act 2020 (NZ) to uniquely identify school, tertiary, and vocational learners across Aotearoa New Zealand.
- Type
- regex
- Engine
- universal
- Confidence
- medium
- Confidence justification
- Medium confidence: 9-10 digit numeric identifiers overlap phone and bank references unless gated on NZQA, ENROL, NCEA, or National Student Number terminology within 300 characters.
- Jurisdictions
- nz
- Regulations
- Privacy Act 2020 (NZ), Education and Training Act 2020 (NZ)
- Frameworks
- ISO 27001, ISO 27701
- Data categories
- pii, education, government-id
- Scope
- narrow
- Risk rating
- 6
- Platform compatibility
- Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, CrowdStrike DLP: Compatible, Palo Alto: Compatible, Netskope: Compatible
Pattern
\b(0\d{8,9}|[1-9]\d{8,9})\b
Corroborative evidence keywords
National Student Number, NSN, NZQA, NCEA, Ministry of Education, ENROL, learner
Proximity: 300 characters
Should match
National Student Number: 0148293716— 10-digit New Zealand National Student Number with labelNSN 148293715 — NZQA Record of Achievement— 9-digit NSN with NZQA Record of Achievement context0293847162— 10-digit zero-leading NSN
Should not match
12345678— Eight digits (below 9-10 digit NSN length)01482937169— Eleven digits (above 10-digit NSN maximum)Students need their National Student Number to log in to the NZQA portal— Prose instruction without an NSN valueSample template: placeholder example record for training only— Template/sample fixture suppressed by shared exclusion dictionary
Known false positives
- New Zealand phone numbers or customer account numbers in non-education documents. Mitigation: Every tier requires explicit NSN, NZQA, NCEA, or ENROL education keywords within 300 characters.
References
- New Zealand Qualifications Authority (NZQA) - National Student Number (NSN)
- Education and Training Act 2020 Schedule 24 (National Student Numbers)