I am trying to verify the answer for Lab - $group and Accumulators in MongoDB aggregation builder( in MongoDB Atlas). The answer is like this:
db.movies.aggregate([
{
$match: {
awards: /Won \d{1,2} Oscars?/
}
},
{
$group: {
...
}
}
])
I am just pasting the same regular expression in the aggregation builder in a match stage. But then output is 0 documents. And I prefer using the aggregation builder to avoid confusion regarding brackets. Please guide me on how to properly use regular expression in MongoDB aggregation builder. Thanks