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