title: Splitting string into matching and non-matching groups in javascript
body: <p>I am trying to split the string into an array of strings those matching a regular expression and those that don't:</p>
  
  <pre><code>string = "Lazy {{some_animal}} jumps over.."
  # do some magic with regex /({{\s?[\w]+\s?}})/g and its negation
  array = ["Lazy ", "{{some_animal}}", " jumps over.."]
  </code></pre>
  
  <p>Best performant way to do that in javascript?</p>