AWS Security ChangesHomeSearch

AWS documentdb documentation change

Service: documentdb · 2026-03-28 · Documentation low

File: documentdb/latest/developerguide/regex.md

Summary

Entire documentation page for the $regex operator in Amazon DocumentDB has been removed, including all examples, code samples, and usage instructions

Security assessment

This change removes documentation content entirely but does not provide any evidence of addressing a specific security vulnerability. The removal could be due to content reorganization, deprecation, or migration to another location. No security warnings, vulnerability disclosures, or security-related content is mentioned in the removed text. The change appears to be a documentation restructuring rather than a security fix.

Diff

diff --git a/documentdb/latest/developerguide/regex.md b/documentdb/latest/developerguide/regex.md
index 3e8dd91b6..8b1378917 100644
--- a//documentdb/latest/developerguide/regex.md
+++ b//documentdb/latest/developerguide/regex.md
@@ -1 +0,0 @@
-[](/pdfs/documentdb/latest/developerguide/developerguide.pdf#regex "Open PDF")
@@ -3,109 +1,0 @@
-[Documentation](/index.html)[Amazon DocumentDB](/documentdb/index.html)[Developer Guide](what-is.html)
-
-Example (MongoDB Shell)Code examples
-
-# $regex
-
-The `$regex` operator allows you to perform regular expression matching on string fields. It is a powerful tool for searching and filtering documents based on complex patterns.
-
-**Parameters**
-
-  * `regular expression`: The regular expression pattern to match against the field.
-
-  * `$options`: (optional) Provides options to modify the search behavior, such as case-sensitivity, global matching, etc.
-
-
-
-
-## Example (MongoDB Shell)
-
-The following example demonstrates the usage of the `$regex` operator to search for documents where the "name" field matches a specific pattern.
-
-**Create sample documents**
-    
-    
-    db.users.insertMany([
-      { name: "John Doe" },
-      { name: "Jane Smith" },
-      { name: "Alice Johnson" },
-      { name: "Bob Williams" },
-      { name: "Charlie Davis" }
-    ]);
-
-**Query example**
-    
-    
-    db.users.find({ name: { $regex: /^A/ } })
-
-**Output**
-    
-    
-    [
-      { "_id" : ObjectId("..."), "name" : "Alice Johnson" }
-    ]
-
-This query will return all documents where the "name" field starts with the letter "A".
-
-## Code examples
-
-To view a code example for using the `$regex` command, choose the tab for the language that you want to use:
-
-Node.js
-    
-    
-    
-    const { MongoClient } = require('mongodb');
-    
-    async function main() {
-      const client = await MongoClient.connect('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false');
-      const db = client.db('test');
-      const collection = db.collection('users');
-    
-      const results = await collection.find({ name: { $regex: /^A/ } }).toArray();
-      console.log(results);
-    
-      await client.close();
-    }
-    
-    main();
-
-Python
-    
-    
-    
-    from pymongo import MongoClient
-    
-    def main():
-        client = MongoClient('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false')
-        db = client['test']
-        collection = db['users']
-    
-        results = list(collection.find({ 'name': { '$regex': '^A' } }))
-        print(results)
-    
-        client.close()
-    
-    if __name__ == "__main__":
-        main()
-
-![Warning](https://d1ge0kk1l5kms0.cloudfront.net/images/G/01/webservices/console/warning.png) **Javascript is disabled or is unavailable in your browser.**
-
-To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.
-
-[Document Conventions](/general/latest/gr/docconventions.html)
-
-$or
-
-$slice
-
-Did this page help you? - Yes
-
-Thanks for letting us know we're doing a good job!
-
-If you've got a moment, please tell us what we did right so we can do more of it.
-
-Did this page help you? - No
-
-Thanks for letting us know this page needs work. We're sorry we let you down.
-
-If you've got a moment, please tell us how we can make the documentation better.