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