title: RegEx how to replace multiple spaces with a single one
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3286874/remove-all-multiple-spaces-in-javascript-and-replace-with-single-space">Remove all multiple spaces in Javascript and replace with single space</a>  </p>
  </blockquote>
  
  
  
  <p>How can I replace, for instance this:</p>
  
  <pre><code>"  "
  "   "
  "    "
  "     "
  </code></pre>
  
  <p>with</p>
  
  <pre><code>" "
  </code></pre>
  
  <p>How can I replace all the empty space characters with a single empty char using regex?</p>