Mashtonsmith
Board Regular
- Joined
- Oct 1, 2004
- Messages
- 164
Hello...
I have large file with over 200k NINO's detailed. One test I need to run is to validate these NINO's to esnure the correct format has been used. I dont want to correct them, simply identify those who fail the format test.
After searching the forum I;ve not found any answers that cover this question.
The format rules are as follows.
National Insurance Number
1. Must be 9 characters.
2. First 2 characters must be alpha.
3. Next 6 characters must be numeric.
4. Final character can be A, B, C, D or space.
5. First character must not be D,F,I,Q,U or V
6. Second characters must not be D, F, I, O, Q, U or V.
At the very least I'd like to be able to test 1-4.
Please help.
Thanks
I have large file with over 200k NINO's detailed. One test I need to run is to validate these NINO's to esnure the correct format has been used. I dont want to correct them, simply identify those who fail the format test.
After searching the forum I;ve not found any answers that cover this question.
The format rules are as follows.
National Insurance Number
1. Must be 9 characters.
2. First 2 characters must be alpha.
3. Next 6 characters must be numeric.
4. Final character can be A, B, C, D or space.
5. First character must not be D,F,I,Q,U or V
6. Second characters must not be D, F, I, O, Q, U or V.
At the very least I'd like to be able to test 1-4.
Please help.
Thanks