title: How to convert a string to hyphen-conjoined words in JavaScript (& regex?)?
body: <p>Let's say I have a string of text:</p>
  
  <pre><code>The quick brown fox jumped over 8 or 9 lazy dogs
  </code></pre>
  
  <p>How would you convert this to lower case hyphen-conjoined words like this?</p>
  
  <pre><code>the-quick-brown-fox-jumped-over-8-or-9-lazy-dogs
  </code></pre>
  
  <p>I assume it requires some kind of regex to convert it correctly?</p>