title: Replace both whitespace and whitespace with comma, with a hyphen in JS?
body: <p>I want to replace the following types:</p>
  
  <pre><code>Some Query String
  Some Comma, Separated, Query String
  </code></pre>
  
  <p>With the following:</p>
  
  <pre><code>Some-Query-String
  Some-Comma-Separated-Query-String
  </code></pre>
  
  <p>Any ideas on the regular expression for this?</p>