Hi, I appreciate any help/suggestions I have a character variable list_of_codes ($50) which looks like this. It is a list of codes in a shorthand notation, easy enough to read for a human 'C00.3-5, C02-04, C05.0, C05.8-9, C06' 'C01, C10.0, C10.2-3, C10.8-9, C11-12' 'C01, C05.1-2, C09, C10.0, C10.2-3, C10.8-9, C11-14' 'C44.0-4, C47.0, C49.0, C00-14, C30-32, C73' 'C44.5, C44.8-9, C47.6-9, C49.6-9' 'C00-C26, C32-C69, C73, C75.4-9, C76-C80' 'C00-50, C60-61, C63-69, C73-74, C76-80' 'C00, C03-08, C15-17, C19-41, C44-76' 'C00, C03-08, C15-17, C19-41, C44-76' But is there a simple way to expand list_of_codes to the list of all the codes? For example 'C01, C10.0, C10.2-3, C10.8-9, C11-12' should be expanded to: C01.0 C10.0 C11.0 C12.0 C01.1 C10.2 C11.1 C12.1 C01.2 C10.3 C11.2 C12.2 C01.3 C10.8 C11.3 C12.3 C01.4 C10.9 C11.4 C12.4 C01.5 C11.5 C12.5 C01.6 C11.6 C12.6 C01.7 C11.7 C12.7 C01.8 C11.8 C12.8 C01.9 C11.9 C12.9 Columnar lay-out only for easier reading! Many thanks!
... View more