How can I work with mongodb regex with special characters like "+" (plus)?
<p>I want to search values having special characters such as " + " in a document.</p>

<pre><code>variable = 'test+test.test';
</code></pre>

<p>I want to search values with <code>.*variable.*</code>,</p>

<p>For example, </p>

<pre><code>db.myCollection.find({ myKey : { '$regex' : '.*variable.*','$options' : 'i' });
</code></pre>

<p>Above queries dont work</p>