Remove white space between the string using javascript
javascript
Solution
This should do the trick:
var str = "PB 10 CV 2662";
str = str.replace(/ +/g, "");
Problem
I have string. I just want to remove all white spaces between all characters.Please reply "PB 10 CV 2662" to "PB10CV2662"