title: Javascript Regex for all words not between certain characters
body: <p>I'm trying to return a count of all words NOT between square brackets. So given ..</p>
  
  <pre><code>[don't match these words] but do match these
  </code></pre>
  
  <p>I get a count of 4 for the last four words.</p>
  
  <p>This works in .net:</p>
  
  <pre><code>\b(?&lt;!\[)[\w']+(?!\])\b
  </code></pre>
  
  <p>but it won't work in Javascript because it doesn't support lookbehind</p>
  
  <p>Any ideas for a pure js regex solution?</p>