I want to search values having special characters such as \" $ / . @ > \" in a document.
\" $ / . @ > \"
Lets consider, I\'ve myKey with values like \"test$aus
\"test$aus
You have to escape $ by \:
$
\
db.myCollection.find({ myKey : /.*\$aus.*/i }); // OR db.myCollection.find({myKey: { $regex: '.*\\$aus.*', $options: 'i'}})