Question : how to remove all whitespace from string java
Answered by : jimmy-hypi
st = st.replaceAll("\\s+","")
Source : https://stackoverflow.com/questions/5455794/removing-whitespace-from-strings-in-java | Last Update : Sat, 18 Apr 20
Question : how to remove spaces from a string
Answered by : martin-de-jonge
#include <algorithm>
int main()
{ std::string str = "H e l l o"; str.erase(remove(str.begin(), str.end(), ' '), str.end()); std::cout << str; // Output Hello return 0;
}
Source : | Last Update : Tue, 17 Nov 20
Question : remove all space from string
Answered by : mwn02
stringtext.Replace(" ", string.Empty);
Source : https://forgetcode.com/CSharp/1519-Remove-all-spaces-in-a-string | Last Update : Wed, 31 Aug 22
Question : Deleting all white spaces in a string
Answered by : rashad
.replaceAll(/\s/g,'')
Source : https://stackoverflow.com/questions/6623231/remove-all-white-spaces-from-text | Last Update : Sun, 28 Nov 21