Build, test, and debug regular expressions
This regular expression matches ICD-9-CM diagnosis codes, which are used in medical billing and healthcare data to classify diseases and health conditions. It handles three specific formats: standard numeric codes (3 to 5 digits), E-codes for external injury causes (E followed by 3-4 digits), and V-codes for supplementary health classifications (V followed by 2-4 digits). It is commonly used for validating legacy medical records before the adoption of ICD-10.