I have string. I just want to remove all white spaces between all characters.Please reply "PB 10 CV 2662" to "PB10CV2662"
This should do the trick:
var str = "PB 10 CV 2662";
str = str.replace(/ +/g, "");
Try this:
var s = "PB 10 CV 2662";
s.replace(/\s+/g, '');
OR
s.replace(/\s/g, '');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With