-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
We should add a section to the FAQ about using regular expressions with MongoDB. It should cover both the problem with $regex and $options (you have to use an ordered dict implementation or Python 3.6+) and discourage the use of Python regular expressions, since their behavior doesn't match PCRE (which the server uses) in a lot of cases, causing incorrect results.
- is related to
-
PYTHON-1681 Query returns different results depending on order of items in query dictionary
- Closed