How do I clear a space in a string?
Input : '/var/www/site/Brand new document.docx'
Output : '/var/www/site/Brandnewdocument.docx'
I want this kind of result.
javascript jquery text
str = str.replace(/\s+/g, '');
'
You can do it in this way. \s stands for blank.
© 2025 OneMinuteCode. All rights reserved.