title: Replace every Nth whitespace with line break
body: <p>I'm trying to replace every 3rd whitespace with a newline character. Here is what I have so far:</p>
  
  <pre><code>text.replace(/(\s{3})/g, "$1&lt;br /&gt;")
  </code></pre>
  
  <p>However, nothing gets replaced.</p>