How to remove spaces in a string? For instance:
Input : '/var/www/site/Brand new document.docx'
Output : '/var/www/site/Brandnewdocument.docx'
Thanks
How to remove spaces in a string? For instance: Input : Thanks |
||||
|
This?
Update: Based on this question, this:
is a better solution. It produces the same result, but it does it faster. The Regex
A great explanation for As a side note, you could replace the content between the single quotes to anything you want, so you can replace whitespace with any other string. |
|||||||||||||||||||||
|
Two ways of doing this! |
|||
|