title: Java convert String to logic
body: <p>//having Java 7/8: 
      String logic = "123 OR 345 OR 678 NAND 901";</p>
  
  <pre><code>//Should evaluate something simililar to this: 
  String test1 = "abc345678opq"; String test2 = "abc123901";
  
  boolean isCheckOk1 = test1.contains("123") || test1.contains("345") || test1.contains("678") &amp;&amp; !test1.contains("901");
  
  boolean isCheckOk2 = test2.contains("123") || test2.contains("345") || test2.contains("678") &amp;&amp; !test2.contains("901");
  
  //where isCheckOk1 will be true
  
  //and isCheckOk2 will be false;
  </code></pre>
  
  <p>Is there a generic way in Java a library to achive this?</p>
  
  <p>Next level:</p>
  
  <pre><code>"123 OR 345 OR 678 NAND (901 AND 902)"
  </code></pre>
  
  <p>Thank you!</p>