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.

National Drug Code (NDC)

Prev Next

The National Drug Code (NDC) is an identifier issued by the Food and Drug Administration (FDA) for an individual drug in the United States. An alternate format is defined by HIPAA regulations.

Validator

No validation

Matched expressions

Regex expressions

Description

Score

\b\*?\d{4} \d{4} \d{2}\b

Matches a 10-digit number of the format *NNNN NNNN NN or NNNN NNNN NN delimited by space.

1

\b\*?\d{4}-\d{4}-\d{2}\b

Matches a 10-digit number of the format *NNNN-NNNN-NN or NNNN-NNNN-NN delimited by hyphen.

1

\b\d{5} *?\d{3} \d{2}\b

Matches a 10-digit number of the format NNNNN *NNN NN or NNNNN NNN NN delimited by space.

1

\b\d{5}-*?\d{3}-\d{2}\b

Matches a 10-digit number of the format NNNNN-*NNN-NN or NNNNN-NNN-NN delimited by hyphen.

1

\b\d{5} \d{4} *?\d\b

Matches a 10-digit number of the format NNNNN *NNNN N or NNNNN NNNN N delimited by space.

1

\b\d{5}-\d{4}-*?\d\b

Matches a 10-digit number of the format NNNNN-*NNNN-N or NNNNN-NNNN-N delimited by hyphen.

1

\b\d{5} \d{4} \d{2}\b

Matches a 10-digit number of the format NNNNN NNNN NN delimited by space.

1

\b\d{5}-\d{4}-\d{2}\b

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

1



Ignored expressions

None