i just started using mongodb and setup a test database to handle web scraping results from a couple scripts i created. right now, the date_found is being loaded as a string. when i run this in mongohub:
{"date_found" : /.*2015-05-02.*/}
i get all the collections with '2015-05-02'. awesome!
however, when i run:
for item in collection.find({"date_found": "/.*2015-05-02.*/"}):
print item
i get nothing.
also, this:
for item in collection.find():
print item
gives me all the collections, so it seems everything works to the extent that i can query the database.
any chance someone can tell me what bonehead mistake i'm making (or what i'm missing)?