Skip to content

Commit bef6821

Browse files
committed
Fix typo
1 parent 21f73ca commit bef6821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/reference/operator/regex.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ $regex
6767

6868
.. code-block:: javascript
6969

70-
db.collection.find( { field: $regex: /acme.*corp/i, $nin: [ 'acmeblahcorp' } );
70+
db.collection.find( { field: { $regex: /acme.*corp/i, $nin: [ 'acmeblahcorp' ] } );
7171

7272
This expression returns all instances of ``field`` in
7373
``collection`` that match the case insensitive regular expression

0 commit comments

Comments
 (0)