Regex queries do not work #46

Closed
rlaferla opened this Issue Sep 25, 2012 · 4 comments

3 participants

@rlaferla

Version: MongoHub 2.5.3(97)

Regular expression queries do not work:

e.g.

Query or is {"name": /^Robert/}

yields this error message:

Error
unexpected char in the current parser context - "{"name": /^Robert/}"

@jeromelebel
Owner

Same bug than : #25

Sorry, this fork is the only regression from the original fork: there is no support for tengen format, yet. You need to write your regexp with the strict json format.

See: http://www.mongodb.org/display/DOCS/Mongo+Extended+JSON

I hope to implement that, one day...

@rlaferla

It's a shame that this issue was closed. The ability to use simpler, consistent syntax is a big usability issue. I just revert to using the command-line instead of this app.

@jeromelebel
Owner

I don't want to keep 2 issues open. Please follow #25. This will be fixed as soon as I have the time for it.

@chourobin

In the meantime, use:

{"name":{"$regex":"Robert","$options":""}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment