-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.1.8
-
Component/s: Querying
-
None
-
Fully Compatible
-
ALL
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Backslashes that are part of a $regex disappear before they get to the PCRE engine. You need to double-backslash to get a single backslash. Note that this happens also when the expression is within single quotes.
Same happens when using $regex for document validation. A nice feature here is that you can observe the disappearance with db.getCollectionInfos().
- is related to
-
COMPASS-896 Document how Compass handles special escape sequences in input fields
-
- Closed
-