title: Find lines matching a pattern except those containing another pattern
body: <p>In Visual Studio Code's regex syntax, is it possible to find all occurrences of a certain string, for e.g. </p>
  
  <pre><code>&amp;$
  </code></pre>
  
  <p>except where there's another pattern, say the string <code>function(</code> in the same line, for example</p>
  
  <pre><code>function functionname(&amp;$variable, ...)
  </code></pre>
  
  <p>?</p>
  
  <p>This does not work for me:</p>
  
  <pre><code>(?!function).*\&amp;\$ 
  </code></pre>
  
  <p>It simply yields <em>all</em> results, both lines with <code>function</code> in them, and without, as if I were doing a simple search for <code>&amp;$</code>.</p>
  
  <p><strike><a href="https://msdn.microsoft.com/en-us/library/2k3te2cs.aspx" rel="nofollow noreferrer">VSCode's Regex help page</a></strike> Visual Studio's help page seems to suggest that that's the way, but I can't seem to get it to work in any constellation in VS Code, so it seems the applications are using different notations.</p>
  
  <p>Neither do a couple other notations work (I suppose from different regex flavours) that I've Googled around for. </p>