grails-mongodb-console icon indicating copy to clipboard operation
grails-mongodb-console copied to clipboard

Regex queries don't seem to work

Open rlaferla opened this issue 11 years ago • 1 comments

e.g.

name:/^John/

rlaferla avatar May 30 '13 20:05 rlaferla

Hello, yes, the tengen-json parser still has some issue with this syntax it seems. In the meantime, you can use the strict json syntax, ex:

name:{$regex:"^John"}
name:{$regex:"^john", $options:"i"}
"name":{"$regex":"^john", "$options":"i"}

mstein avatar May 31 '13 08:05 mstein