MongoDB:以包含/的正则表达式开头

时间:2018-11-05 05:45:25

标签: regex mongodb

我想在MongoDB中搜索以“ https://en.wikipieda.org”开头的网址

有人知道Regex中“ /”的取消字符吗?

我有以下内容,但由于“ //”而出错

db.RawURLS.find({"url" : { $regex : /^https://en.wikipedia.org/ }}).hint({"url" : 1})

0 个答案:

没有答案