RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find ICD-10 Code (World Health Organization)
Expression
^[A-Z]\d{2}(\.\d){0,1}$
Description
This expression matches ICD-10 code
Matches
Z99.9 | Z99
Non-Matches
Z999 | Z99. | 99
Author Rating: The rating for this expression. Veniamin Goldin
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Allow an X as a trailing character
Name: Tim
Date: 9/9/2015 1:53:03 PM
Comment:
Section 2.4.5 of the instructions allow an X to fill out the four character format. ^[A-Z]\d{2}(\.\d){0,1}X*$ seems to work though I am not a regex expert.


Title: A slight improvement
Name: Kevin Mac Uistin
Date: 8/11/2011 9:51:12 AM
Comment:
I have to validate ICD 10 codes for a project I am working on, and find the following RegEx is more relevant (at least to me). ^[a-zA-Z]\d{2}(\.\d{1,3}){0,1}$ I have basically taken your expression and allowed 1 to 3 digits after the decimal point.


Title: Matches only the simplest of cases
Name: Aleksi
Date: 4/20/2010 1:09:58 AM
Comment:
This regular expression matches only the simples of cases and not even them completely. E.g. the code H42.0* is not matches. Furthermore, ICD-10 allows combination of cause and sympton codes that are not matched at all.


Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials