function to replace extra char with dot js code example
Example: javascript replace period
var lotsofPeriods="How... are. you?";
var noPeriods = lotsofPeriods.replace(/./g,"");//"How are you?"
var lotsofPeriods="How... are. you?";
var noPeriods = lotsofPeriods.replace(/./g,"");//"How are you?"