title: How can I use 'Not Like' operator in MongoDB
body: <p>I can use the SQL <code>Like</code> Operator using <code>pymongo</code>,</p>
  
  <pre><code>db.test.find({'c':{'$regex':'ttt'}})
  </code></pre>
  
  <p>But how can I use <code>Not Like</code> Operator?</p>
  
  <p>I tried</p>
  
  <pre><code>db.test.find({'c':{'$not':{'$regex':'ttt'}})
  </code></pre>
  
  <p>but got error:</p>
  
  <blockquote>
    <p>OperationFailure: $not cannot have a regex</p>
  </blockquote>