regex « mongodb « Java Database Q&A





1. Is it possible to use $all and $regex at the same time?    stackoverflow.com

I've got an interesting problem that is somewhat related to this question. I have multiple values for a field that I want to check. For example, say I ...

2. MongoDB regex, I get a different answer from the Java API compared with the console    stackoverflow.com

I must be doing my regex wrong. In the console I do db.triples.find({sub_uri: /.*pdf.*/ }); and get the desired result. My Java class looks like this, (I have set input="pdf"):

    ...