The following query throws a FailedToParse exception when passed to fromjson():
{"d":{"$regex":"(s|t|y|n)\..","$options":'mxsi'}}
libc++abi.dylib: terminating with uncaught exception of type mongo::MsgAssertionException: code FailedToParse: FailedToParse: Bad regex option: x: offset:47 of:{"d":{"$regex":"(s|t|y|n)\..","$options":'mxsi'}}
- is related to
-
SERVER-21974 mongo shell can't explain insensible case regex
- Closed
- related to
-
SERVER-27649 Don't error on serialization of $elemMatch with $regex
- Closed