I have this query running natively ok, but throws an exception when running in .net
FilterDefinition<BsonDocument> filter = "{'$and':[ {'A':{$ne:'1'}},{'B': {$regex:/.*Ios.*/i}}]}";
collection.Find(filter);
via .net I get the exception: JSON reader expected a string but found '/.*Ios.*/i'.
I believe it is because the regex value is not wrapped with quotes.
Whats the deal here?