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