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