replace all dots in string javascript 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?"