The new docs.trellix.com features a modernized UI and AI-powered conversational search. Content is currently available in English, with additional languages launching in early November 2026. We hope you enjoy the updated experience.

UK National Insurance Number

Prev Next

UK National insurance numbers (NINo) appear in a combination of letters and numbers - group of two letters, group of six numbers, and one letter. For example: CD123456D.

Validator

None

Matched expressions

Regex expressions

Description

Score

\b[AEKLHTY][ABEHKLMPRSTWXYZ]\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first character is any of AEKLHTY, second character is any of ABEHKLMPRSTWXYZ, followed by a 6-digit number, and the last character is any of [A-D].

1

\bB[ABEHKLMT]\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first character is B, second character is any of ABEHKLMT, followed by a 6-digit number, and the last character is any of [A-D].

1

\bC[ABEHKLR]\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first character is C, second character is any of ABEHKLR, followed by a 6-digit number, and the last character is any of [A-D].

1

\bGY\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first two characters are "GY", followed by a 6-digit number, and an alphabet [A-D].

1

\bJ[ABCEGHJKLMNPRSTWXYZ]\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first character is J, second character is any of ABCEGHJKLMNPRSTWXYZ, followed by a 6-digit number, and the last character is any of [A-D].

1

\bM[AWX]\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first character is M, second character is any of AWX, followed by a 6-digit number, and the last character is any of [A-D].

1

\bN[ABEHLMPRSWXYZ]\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first character is N, second character is any of ABEHLMPRSWXYZ, followed by a 6-digit number, and the last character is any of [A-D].

1

\bO[ABEHKLMPRSX]\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first character is O, second character is any of ABEHKLMPRSX, followed by a 6-digit number, and the last character is any of [A-D].

1

\bP[ABCEGHJLMNPRSTWXY]\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first character is P, second character is any of ABCEGHJLMNPRSTWXY, followed by a 6-digit number, and the last character is any of [A-D].

1

\bR[ABEHKMPRSTWXYZ]\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first character is R, second character is any of ABEHKMPRSTWXYZ, followed by a 6-digit number, and the last character is any of [A-D].

1

\bS[ABCGHJKLMNPRSTWXYZ]\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first character is S, second character is any of ABCGHJKLMNPRSTWXYZ, followed by a 6-digit number and the last character is any of [A-D].

1

\bW[ABEKLMP]\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first character is W, second character is any of ABEKLMP, followed by a 6-digit number and the last character is any of [A-D].

1

\bZ[ABEHKLMPRSTWXY]\d{6}[A-D]\b

Matches the pattern AANNNNNNA, where the first character is Z, second character is any of ABEHKLMPRSTWXY, followed by a 6-digit number and the last character is any of [A-D].

1



Ignored expressions

None