title: Searching string with special characters in MongoDB document
body: <p>I want to search values having special characters such as <code>" $ / . @ &gt; "</code> in a document.</p>
  
  <p>Lets consider, I've myKey with values like <code>"test$australia", "test$austria", "test$belgium",  "green.africa".</code></p>
  
  <p>I want to search values with <code>'.*$aus.*',</code></p>
  
  <p>For example, <br/></p>
  
  <pre><code>db.myCollection.find({ myKey : /.*$aus.*/i }); 
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>db.myCollection.find({ myKey : { '$regex' : '.*$aus.*','$options' : 'i' });
  </code></pre>
  
  <p>Above queries dont work , how should I form query?
  I'm using MongoDB 2.4.1.</p>