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