📜  mongodb 检查字符串中的子字符串 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:11.990000             🧑  作者: Mango

代码示例1
#all documents whose description field contains anywhere
#in the text the "beach" sub string
query = db.collection.find({
  "description" : {"$regex" : ".*beach.*"}
})