match with regex mongodb code example Example: "compass" mongodb filter or search regex { email: RegExp('@gmail.com$', 'i') }