Ekspresi reguler ganti titik
mystring = mystring.replace(/\./g,' ')
Clever Crane
mystring = mystring.replace(/\./g,' ')
var lotsofPeriods="How... are. you?";
var noPeriods = lotsofPeriods.replace(/./g,"");//"How are you?"