mongo query like code example
Example 1: mongodb find like
db.users.find({"name": /.*m.*/});
db.users.find({"name": /m/});
Items.find({"description": {$regex: ".*" + variable + ".*"}}).fetch();
Example 2: like mongodb
db.collection.find( { "url": { "$regex": ".*a.*"} } );
Example 3: mongodb regex
{ : { $regex: /pattern/, $options: '' } }
{ : { $regex: 'pattern', $options: '' } }
{ : { $regex: /pattern/ } }