javascript replace all periods code example
Example 1: regular expression replace a dot
mystring = mystring.replace(/\./g,' ')
Example 2: JavaScript replace all periods
var lotsofPeriods="How... are. you?";
var noPeriods = lotsofPeriods.replace(/./g,"");//"How are you?"