title: Java RegEx negative lookbehind
body: <p>I have the following Java code:</p>
  
  <pre><code>Pattern pat = Pattern.compile("(?&lt;!function )\\w+");
  Matcher mat = pat.matcher("function example");
  System.out.println(mat.find());
  </code></pre>
  
  <p>Why does <code>mat.find()</code> return true? I used negative lookbehind and <code>example</code> is preceded by <code>function</code>. Shouldn't it be discarded?</p>