Test, validate and match regular expressions
This regular expression validates International Classification of Diseases, Ninth Revision (ICD-9) diagnostic codes. It matches V-codes (starting with V), E-codes (starting with E), and standard 2 to 4 digit numeric codes, including optional decimal extensions for sub-classifications. This pattern is highly useful in healthcare, medical billing, and electronic health record (EHR) systems to ensure accurate patient data entry.