Method Matches
Matches(string, BsonRegularExpression)
Tests that the value of the named element matches a regular expression (see $regex).
public static IMongoQuery Matches(string name, BsonRegularExpression regex)
Parameters
name
stringThe name of the element to test.
regex
BsonRegularExpressionThe regex.
Returns
- IMongoQuery
An IMongoQuery.