menu
To query a MongoDB collection to search a RegExp, you can use the following syntax in a MongoDB query:
db.collection.find({
    name: {$regex: "Match here"}
})