in reply to Silly Regex question

Just want to say that s/\s\s+/ /g is Another Way To Do It, and to note that both of us are answering the question we think you were really asking, which is "how to I turn a string of two or more whitespaces into one space?". Right?
--
“Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.”
M-J D