contains letter in mongodb code example
Example 1: contains mongo-query string
db.users.findOne({"username" : {$regex : ".*son.*"}});
Example 2: mongo shell query for email domain regex
{ $regexFind: { input: <expression> , regex: <expression>, options: <expression> } }