Dear all,
I have a string with differing number of spaces for different rows. How do i get rid of the spaces?
Thanks!
Dear all,
I have a string with differing number of spaces for different rows. How do i get rid of the spaces?
Thanks!
Or use,
string = string.replace(/\s\s+/g, ’ ')