Created
August 5, 2013 23:59
-
-
Save cschlyter/6160764 to your computer and use it in GitHub Desktop.
[MongoDB] query db using regex.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.zips.find({city : { $regex : /^[0-9]/ }}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment