Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove spaces from string javascript

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

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