my @list = split m/,/, $CD;
Then your processing might be easier...
Perl 6 in German
In reply to Re: Regular expression for combination of data by moritz in thread Regular expression for combination of data by isha