title: Find occurrences with regular expression (Java engine)
body: <p>I would like to use some regular expression to find occurrences. For e.g, users will enter:</p>
  
  <p><strong>word1 code1 -10001</strong> !<strong>none</strong></p>
  
  <p>which mean: search word1 AND code1 AND -10001 AND NOT none</p>
  
  <p>These criterion are used to build a regexp.</p>
  
  <p>I have such text lines:</p>
  
  <p>1 - "My usual word12 is including GCode10 -10001. End of record"  // This should be true and return "world12 is including GCode10 -10001."</p>
  
  <p>2 - "This is an other line word12 is including GCode10 -10001 none  End of record" // This should be false and return nothing</p>
  
  <p>I tried this:</p>
  
  <pre><code>^(?=.*?word1)(?=.*?code1)(?=.*?-10001)((?!none).)*$
  </code></pre>
  
  <p>It works for line 1, but it return all the line</p>
  
  <p>I also tried this:</p>
  
  <pre><code>(\\w*word1\\w*).*(\\w*code1\\w*).*(\\w*-10001\\w*)(?!none)
  </code></pre>
  
  <p>But it gave me only "word12", "GCode10", but it missed "-10001" and moreover, it match for the second line! It shouldn't.</p>
  
  <p>I'm not an expert in regexp...</p>