filtering repetitions of spaces
Nov 13 2008 | 2:15 pm
I have a string like this:
"some text with lots of spaces"
I want it to be changed to:
"some text with lots of spaces"
I know the object I want is regexp and I know that I need to say:
'Look for all spaces followed by any number of spaces and replace with one space'
but I can't seem to write it out correctly.
I had a look at this but still struggling. Can someone point me in the right direction?
Thanks.