result = db.devices.find({'$and':[{'stats.fwver': v},{'username':{'$regex':r'(?i)ltu'}}]})#匹配ltu
result = db.devices.find({'$and':[{'stats.fwver': v},{'username':{'$regex':r'^[\d+]'}}]})#匹配数字
python mongodb 正则查询
猜你喜欢
转载自jacklin2015.iteye.com/blog/2247835
今日推荐
周排行