in mongodb shell client, how can I query to find documents with single quotes? I escaped the quote mark in regex. but it does not work.
db.coll.find({field: /\\\
This should work:
db.coll.find({field: /\x27/});
Where 0x27 is Unicode APOSTROPHE
From documentation:
MongoDB regex queries support UTF-8 in the regex string.