I use this, just for your reference
=SUBSTITUTE(SUBSTITUTE(A1,".",","),",",".",LEN(A1)-LEN(SUBSTITUTE(A1,".",""))+1)