title: LINQ Boolean expressions
body: <p>I don't know if this is the right question for here. Let's say I have a String with Values:</p>
  
  <p><em>A = "ab1, eb4, gr3, ..."</em></p>
  
  <p>Then there are two more Strings <strong>B containing must-have values</strong> and <strong>C not-allowed values</strong>. Unfortunately B and C <strong>can contain logical AND / OR</strong> within the strings. </p>
  
  <p>e.g.</p>
  
  <p><em>B = "(ut2 | eg1) &amp; ab1"</em></p>
  
  <p><em>C = "ke2 &amp; pa5"</em></p>
  
  <p>Now I am looking for a way to check wether A is valid for B and C. True or False.</p>
  
  <p>For A it's pretty easy to convert the String to List of String containing the values seperately and enabling LINQ expressions on that list.</p>
  
  <p>But how can I best "parse" the information in B and C to evaluate it with an LINQ expression on List A ?</p>
  
  <p>Think ideal solution would be to have B and C each as just one logical expression to directly have List A checked on them. But how to start with that?</p>
  
  <p>Thanks for your support and best regards.</p>