Table of Contents

Method Matches

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

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 string

The name of the element to test.

regex BsonRegularExpression

The regex.

Returns

IMongoQuery

An IMongoQuery.