title: Regex: Match everything in text paragraph except specific phrases
body: <p>I'm writing a free plugin for Google Docs and processing paragraphs of text.</p>
  
  <p>I need a regular expression to match everything except a <strong>phrase</strong> (i.e. multiple words separated with spaces).</p>
  
  <p>For example, when searching the text <code>The quick brown fox jumped over the lazy dog</code> I want to match everything except <code>quick brown</code> and <code>lazy</code> with the expected result being <code>The fox jumped over the dog</code>.</p>
  
  <p><code>\b((?!(lazy)\b).)+</code><br>
  This works; it matches all text except <code>lazy</code> and I get <code>The quick brown fox jumped over the dog</code>.</p>
  
  <p><code>\b((?!(quick brown|lazy)\b).)+</code><br>
  This does not work; it leaves in <code>brown</code> and I get <code>The brown fox jumped over the dog</code> when I should get <code>The fox jumped over the dog</code></p>
  
  <p>I've searched the web for hours on this and haven't had any luck.  The regex is missing something and I don't know what it is.</p>
  
  <p>Thanks for reading!</p>
  
  <p>RegEx Example: <strong><a href="https://regex101.com/r/3HGiff/1" rel="nofollow noreferrer">https://regex101.com/r/3HGiff/1</a></strong><br>
  Javascript Example: <strong><a href="https://jsfiddle.net/g85je2aj/16/" rel="nofollow noreferrer">https://jsfiddle.net/g85je2aj/16/</a></strong></p>
  
  <p><strong>EDIT/update:</strong> I developed another solution, but it relies on a positive lookbehind, which is only supported by Chrome.  </p>
  
  <p><code>((?&lt;=(quick brown|lazy)+(?=[\s]))|^(?!(quick brown|lazy))).+?((?=(quick brown|lazy))|$)</code></p>
  
  <p>RegEx Example: <strong><a href="https://regex101.com/r/3HGiff/3" rel="nofollow noreferrer">https://regex101.com/r/3HGiff/3</a></strong><br>
  Javascript Example: <strong><a href="https://jsfiddle.net/g85je2aj/19/" rel="nofollow noreferrer">https://jsfiddle.net/g85je2aj/19/</a></strong></p>
  
  <p>Since that only works in Chrome, I don't think it's a real solution.  Any thoughts on how to modify that regex to not use a lookbehind, or is that impossible? </p>