title: Finding multiple words with find() in MongoDB
body: <p>I'm using Python in conjunction with MongoDB. I have an array of words, and I use these words to search the Mongo database and match any documents with matching fields using <code>$in</code>, e.g. </p>
  
  <pre><code>collection.find({"word":{"$in":words}})
  </code></pre>
  
  <p>The above works very well, but I want to be able to use a regex. The problem is now that if one of the words in the array was spelt <code>accus</code> instead of <code>accuse</code>, I want the <code>find()</code> query to still return the document (record/row) relating to the word <code>accuse</code>.</p>
  
  <p>I've tried this, which doens't work at all, no results are returned. </p>
  
  <pre><code>collection.find({"word":{"$in":{"$regex":words}}})
  </code></pre>
  
  <p>Each element in the array reads with <code>^</code> preceding the word, 
  e.g. <code>['^work', '^accus', '^planet']</code></p>
  
  <p>Am I just going about this the wrong way? </p>