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