Codice:
for (int i = 0; i < str.Length; i++)
{
if (str[i] == '\'' && !aperto && str[i-1]==',')//evito che nome con la struttura aaa'aaa incasinino il tutto
{
aperto = true;
continue;
}
if (str[i] == '\'' && aperto)
aperto = false;
if (aperto)
if (str[i] == ',')
str=str.Substring(0,i)+"€"+str.Substring(i+1,str.Length-i-1);
}
string[] spl = str.Split(',');
for (int j = 0; j < spl.Length; j++)
{
string r = spl[j];
for (int i = 0; i < r.Length; i++)
if (r[i] == '€')
spl[j] = r.Replace('€', ',');
}
Oh yeah, grazie per l'input, e' servito molto, ho adottato circa il tuo schema..