Skip to content

Instantly share code, notes, and snippets.

@piyonishi
Last active December 17, 2015 08:58
Show Gist options
  • Save piyonishi/5583404 to your computer and use it in GitHub Desktop.
Save piyonishi/5583404 to your computer and use it in GitHub Desktop.
import pymongo, re
regx = re.compile("^foo",re.IGNORECASE)
db.users.find({"name": regx})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment