在MongoDB"db.foo.find()"语法中,如何让它匹配所有字母及其重音版本?
例如,如果我的数据库中有一个姓名列表:
How would I allow a search for the strings "Joao", "Francois", or "Jesus" to match the given name?
I am hoping that I don't have to do a search like this every time:
db.names.find({name : /Fr[aã...][nñ][cç][all accented o characters][all accented i characters]s/ })