Get records by post


in this post is a description about getting filtered records by post:

for example:

curl -X POST ‘
-H ‘Content-Type: application/json’
-d ‘{“filter”: { “pop”: { “$gt”: 20000 } } }’

This works fine.

i’am trying to use such a filter (with regex to search caseinsensitive) in the payload but i c’ant get it to work:

{“filter”: { “Note”: /.bohr./i }}

in mongoshell it works perfect
“Note” : /.bohr./i
After each dot is a star which is not shown in this forum
Please Help