title: Why does .*(?!Integration)Test match FooIntegrationTest?
body: <p>I'm trying to write a regex to run all unit tests but not run integration tests.  Unit tests are named <code>FooTest</code>, integration tests are named <code>BarIntegrationTest</code>, with "Foo" and "Bar" being variables.  <a href="http://jimbarritt.com/non-random/2010/05/28/make-fireworks-intellij-plugin-ignore-integration-tests/" rel="nofollow">I found this article on how to do it and I have solved my problem</a>.  But, its solution is to use this regex:</p>
  
  <pre><code>(.(?!Integration))*Test
  </code></pre>
  
  <p>I don't understand why this regex doesn't suffice:</p>
  
  <pre><code>.*(?!Integration)Test
  </code></pre>
  
  <p>When I tried that second regex, my Integration tests were still run.  </p>