diff --git a/source/reference/operator/not.txt b/source/reference/operator/not.txt index aca4f9a03bb..ca99b585363 100644 --- a/source/reference/operator/not.txt +++ b/source/reference/operator/not.txt @@ -56,8 +56,9 @@ $not collection where the ``item`` field value does *not* start with the letter ``p``. - If using PyMongo's ``re.compile()``, you can write - the above query as: + If you are using Python, you can write the above query with the PyMongo + driver and the ``re.compile()`` method to compile a regular expression, + as follows: .. code-block:: python