insert comma at every third position in string...
I am flumoxed on something rather simple I fear. I have a string like this ...
B01B09B20B21C13E10F07G12G20G24
I need to turn it into this
B01,B09,B20,B21,C13,E10,F07,G12,G20,G24
It is consistant in the following:
1. each segment will always be 3 characters long
2. each segment will always be structured as 1 character and 2 numerals
3. the list will always vary in length but always divisible by 3
Any simple solutions? I have though about various cflooping methods and simply not liked anythign I cam up with.
All help is greatly appreciated.
God Bless!
Chris
