DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+6 =
Submit