mongodb comment regex match code example
Example 1: mongodb regex
{ : { $regex: /pattern/, $options: '' } }
{ : { $regex: 'pattern', $options: '' } }
{ : { $regex: /pattern/ } }
Example 2: mongo shell query for email domain regex
{ $regexFind: { input: , regex: , options: } }