Posted on 2004-08-23
I need a function that will format a comma-separated string/list-thing.
This has to be done according to some rules.
"TXT1, TXT2(E12, E13), TXT3, TXT4, TXT3, TXT2(E12,E16), TXT6"
should be transformed to
"TXT1, TXT2(E12, E13, E16), TXT3, TXT4, TXT6"
Each of the TXTn elements should only be one time in the new list.
And the elemnts with a "semi element" (the one with parantesis) like TXT2(..) are alos to be only one time, but with
all of the semi-elements included.