Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"name":"foo","regex_expression":"^[^@ ]+@(bar\\.com)$"}]
Query
db.collection.find({$expr:{$regexMatch:{input:"foo@bar.com",regex:"$regex_expression"}}})
Result