Chapter 3: Core Aggregation - Lab - $group and Accumulators

I’m not posting the answer. But in the regex why is there “?” at the end? If I don’t put it I get a different result.

Hey @Sourabh_Karmarkar

? is a quantifier that will match 0 or 1 of the preceding character.