I have a find statement like this
collSession.find({"Venue.type": /.*MT.*/}).toArray(function (err, _clsSession)
{
console.log(_clsSession);
});
It is giving answer.But i need to some value of variable instead of that harcoded value MT. How to achieve this ? Thanks.
UPDATE I tried like "/."+searchterm+"./" Its not working.
See Question&Answers more detail:os