Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove multiple space to single javascript

var name = "Code    padding";
//remove multiple space to single
name = name.replace(/  +/g, ' '); // Code padding
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #multiple #space #single #javascript
ADD COMMENT
Topic
Name
5+1 =