title: Ruby reduce all whitespace to single spaces
body: <p>I'm not sure how do this, as I'm pretty new to regular expressions, and can't seem to find the proper method to accomplish this but say I have the following as a string (all tabs, and newlines included)</p>
  
  <pre><code>1/2 cup  
  
  
  
  
              onion           
               (chopped)
  </code></pre>
  
  <p>How can I remove all the whitespace and replace each instance with just a single space?</p>