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 Health Service (NHS) Number

Prev Next

The personal identification number issued by the U.K. National Health Service (NHS) for administration of medical care.

Validator

Validator

Description

UK National Health Service (NHS) validator

Validates using the checksum.



Matched expressions

Regex expressions

Description

Score

\b[A-CEGHJ-PR-TW-Z]{1}[A-CEGHJ-NPR-TW-Z]{1}[0-9]{6}[A-DFM]{0,1}\b

Looks for match with where the first character is an alphabet [A-Z] except DFIQUV, second character is an alphabet [A-Z] except DFIOQUV, followed by 6 digits and further followed by either of ABCDFM.

1

\b\d{3}\.\d{3}\.\d{4}\b

Matches a 10-digit number of the format NNN.NNN.NNNN delimited by dot.

1

\b\d{3}\d{3}\d{4}\b

Matches a 10-digit number of the format NNNNNNNNNN without a delimiter.

1

\b\d{3}-\d{3}-\d{4}\b

Matches a 10-digit number of the format NNN-NNN-NNNN delimited by hyphen.

1

\b\d{3} \d{3} \d{4}\b

Matches a 10-digit number of the format NNNNNNNNNN delimited by space.

1



Ignored expressions

None