title: Parse boolean expression python
body: <p>I have a boolean expression as a string like: <code>"Hello, world/earth , how"</code> and so on where <code>/</code> is <code>OR</code> and <code>,</code> is <code>AND</code></p>
  
  <p>I want to compare a string with this boolean expression and return <code>True</code> if the string contains <code>"Hello" AND ("world" OR "earth") AND "how"</code></p>
  
  <p>How should I do this?</p>