Regular Expression To Validate ICD-10-CM Codes

A regular expression to verify it is a valid ICD-10-CM (International Classification of Diseases, Tenth Revision, Clinical Modification) code.

/([A-TV-Z][0-9][A-Z0-9](\.?[A-Z0-9]{0,4})?)/

Matches:

  • A07
  • Q00
  • L11

Non-matches:

  • c123
  • 045.23
  • 1234.5

See Also: