mongodb case insensitive search code example
Example: mongodb regex case insensitive
db.collection.find({name:{'$regex' : '^((?!string).)*$', '$options' : 'i'}})
db.collection.find({name:{'$regex' : '^((?!string).)*$', '$options' : 'i'}})