I am trying to use the C-API for mongo DB. I want to find records with a name matching a regular expression containing slashes . If I run the mongo command line I get 40 results for the query:
db.test_006.find(
)
which is correct. When I try to code this in C I can not get it to match.
using:
bson_append_regex( &query, "name","/TEST::TOP:NEWSTAT/" , "" )
I find all the records and more.
All combinations of
/ or even [/] or \\/ do not find any records. I also tried
x2F.