title: How to make negative lookahead work with end of line text
body: <p>I have a regex like the following:</p>
  
  <pre><code>.{0,1000}(?!(xa7|para(graf))$)
  </code></pre>
  
  <p>using Java.
  I was expecting that it would cause the following text to fail:</p>
  
  <p>blaparagraf</p>
  
  <p>because paragraf is found at the end</p>