mongodb find like
snippet in javascript

mongodb find like

user3945

db.users.find({"name": /.*m.*/});

db.users.find({"name": /m/});

Items.find({"description": {$regex: ".*" + variable + ".*"}}).fetch();

contains mongo-query string

user3466

db.users.findOne({"username" : {$regex : ".*son.*"}});

like in mongodb

user4247

db.users.find({"name": /.*m.*/})