SyntaxFix
Write A Post
Hire A Developer
Questions
I add double backslash to the dot to make it work. Cheer.
var st = "okay.this.is.a.string"; var Re = new RegExp("\\.","g"); st = st.replace(Re," "); alert(st);