Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to remove spaces from strings javascript

var str = '/var/www/site/Brand new document.docx';

document.write( str.replace(/s/g, '') );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #spaces #strings #javascript
ADD COMMENT
Topic
Name
1+6 =