摘要: http://www.cnblogs.com/yaksea/archive/2012/07/05/2578614.html假定需要查询name中包含s的:db.customer.find({'name': /.*s.*/i})pymongo的写法如下:rexExp = re.compile('.*s.*', re.IGNORECASE)db.customer.find({'name':rexExp })或者db.customer.find({'name': {'$regex':'.*s.*'} }) 阅读全文
posted @ 2013-04-10 12:26 道以万计 阅读(235) 评论(0) 推荐(0)