What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-20 04:55:03
pymongo regex search
# use $regex to find docs that start with case-sensitive letter "obje" query = { "field": { "$regex": 'obje.*' } } docs = col.count_documents( query ) print ("query:", query) print ("$regex using '.___*' -- to... Add solution
Best helpers
Ranking is empty