regular expression replace a dot
mystring = mystring.replace(/\./g,' ')var lotsofPeriods="How... are. you?";
var noPeriods = lotsofPeriods.replace(/./g,"");//"How are you?"
Also in JavaScript:
- javascript difference between target and currenttarget
- javascript http get request
- jquery copier dans le presse papier
- mongoose setup
- how to get the selected index of dropdown in jquery
- ajax in jquery in laravel
- javascript class click event
- integer to array javascript
- get client timezone offset in JavaScript
- statusbar reactnati
- javascript check if dom element exists
- how to add value with useref in react
- alpine.js install
- text editor
- how to use json stringify in javascript
- ckeditor ignore contenteditable
- Better Array check with Array.isArray Because arrays are not true array in JavaScript, there is no simple typeof check. No problem! Use the method Array.isArray to check…
- between in mongodb
- jest Cross origin http://localhost forbidden
- make internal value in render function in react native
- how get checkbox if checked in jquery
- how to check for duplicate syntax in javascript
- javascript on the fly form submit
- class declaration in javascript