Puede usar el operador $where de la siguiente manera: db.col.find({$where: "\"my regex\".match(this.regex)"})