Chapter 3 Lab, $group - You can use RegExp in Compass

If you are new to aggregation and using Compass to help you understand and build up the queries/pipelines - this may come in handy
$match {
“someField”: RegExp( / your-regexp-here / )
}
doesn’t balk at curly brackets

I couldn’t get $regex to work…

any example of this or better syntax in Compass ??

Please check this link

$regex operator

1 Like