I'm trying to extract the ICD-10 code from a string variable. The string variable all vary in content and length, but all have the heading of the ICD10 code followed by the code within brackets. Here is one example: "Related To Length Of Gestation And Fetal Growth (P05–P08)". I'm trying to extract the P05–P08 as a separate variable.
I've explored the split function, and the regexs functions but cannot get it right.
Anybody that know how to?
Hanna
I've explored the split function, and the regexs functions but cannot get it right.
Anybody that know how to?
Hanna
Comment