Answers for "JavaScript replace all periods"

0

regular expression replace a dot

mystring = mystring.replace(/\./g,' ')
Posted by: Guest on August-15-2020
-1

JavaScript replace all periods

var lotsofPeriods="How... are. you?";
var noPeriods = lotsofPeriods.replace(/./g,"");//"How are you?"
Posted by: Guest on August-05-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language