Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replace multiple spaces with single space javascript

string = string.replace(/ss+/g, ' ');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #multiple #spaces #single #space #javascript
ADD COMMENT
Topic
Name
8+3 =