Ver originalvar txt = '$123,456,845.90'.split('.');var txt = txt[0].replace(/,/g, '.').slice(1) + ',' + txt[1];