JavaScript Ganti periode

var lotsofPeriods="How... are. you?";
var noPeriods = lotsofPeriods.replace(/./g,"");//"How are you?"
Grepper