Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
2.10.1
-
None
-
None
Description
My test program outputs:
str print { "timestamp" : { "$regex" : "/\w/"}}
|
JSON print { "timestamp" : { "$regex" : "/w/"}} <= WRONG?
|
str print { "timestamp" : { "$regex" : "/\ w/"}}
|
JSON print { "timestamp" : { "$regex" : "/\\w/"}} <= WRONG?
|
str print { "timestamp" : { "$regex" : "/\\w/"}}
|
JSON print { "timestamp" : { "$regex" : "/\\w/"}} <= OK
|
str print { "timestamp" : { "$regex" : "/\\ w/"}}
|
JSON print { "timestamp" : { "$regex" : "/\\ w/"}} <= OK
|
See https://groups.google.com/forum/?fromgroups=#!topic/mongodb-user/fsrhBwN1SXs for more detail.