-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.0.11
-
Component/s: Querying
-
None
-
Query Optimization
-
(copied to CRM)
Provide a way to use regular expressions in MongoDB where the word character (\w) and word boundary (\b) escapes work for code points greater than or equal to 256.
Original description
$regex word boundary fails by treating Danish ø character as a non-character
db.collection.find({ "name" : { "$regex" : ".*\\bden\\b.*" , "$options" : "i"} })
returns a document:
{ "name": "Death Is A Caress(Døden Er Et Kjærtegn).sub" }
- related to
-
SERVER-7218 Turn on PCRE_UCP config option to pcre build to enable some regex characters (\b \B \d etc) to work with UTF8 characters
- Backlog