ejdb-python icon indicating copy to clipboard operation
ejdb-python copied to clipboard

Regexp string matching seems not to work

Open rrerolle opened this issue 9 years ago • 0 comments

The ejdb states that it's possible to use regexp for string matching, using the syntax described in http://ejdb.org/doc/ql/ql.html#simple-matching

I'm trying to achieve this using the python bindings, expecting to match the "Grenny" parrot.

>>> with ejdb.find('parrots2', {"name": "/G.*/"}) as cur:
...     print("found %s parrots" % len(cur))
... 
found 0 parrots

I wonder if I'm doing anything wrong, or if the regexp matching is really supported by the python bindings ?

rrerolle avatar Dec 04 '15 10:12 rrerolle