CosmosLinqExtensions.RegexMatch Method

Definition

Overloads

RegexMatch(Object, String)

Returns a Boolean value indicating if the specified expression matches the supplied regex pattern. For more information, see https://video2.skills-academy.com/en-us/azure/cosmos-db/nosql/query/regexmatch. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library.

RegexMatch(Object, String, String)

Returns a Boolean value indicating if the specified expression matches the supplied regex pattern. For more information, see https://video2.skills-academy.com/en-us/azure/cosmos-db/nosql/query/regexmatch. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library.

RegexMatch(Object, String)

Source:
CosmosLinqExtensions.cs

Returns a Boolean value indicating if the specified expression matches the supplied regex pattern. For more information, see https://video2.skills-academy.com/en-us/azure/cosmos-db/nosql/query/regexmatch. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library.

public static bool RegexMatch (this object obj, string regularExpression);
static member RegexMatch : obj * string -> bool
<Extension()>
Public Function RegexMatch (obj As Object, regularExpression As String) As Boolean

Parameters

obj
Object
regularExpression
String

A string expression with a regular expression defined to use when searching.

Returns

Returns true if the string matches the regex expressions; otherwise, false.

Examples

var matched = documents.Where(document => document.Name.RegexMatch(<regex>));

Applies to

RegexMatch(Object, String, String)

Source:
CosmosLinqExtensions.cs

Returns a Boolean value indicating if the specified expression matches the supplied regex pattern. For more information, see https://video2.skills-academy.com/en-us/azure/cosmos-db/nosql/query/regexmatch. This method is to be used in LINQ expressions only and will be evaluated on server. There's no implementation provided in the client library.

public static bool RegexMatch (this object obj, string regularExpression, string searchModifier);
static member RegexMatch : obj * string * string -> bool
<Extension()>
Public Function RegexMatch (obj As Object, regularExpression As String, searchModifier As String) As Boolean

Parameters

obj
Object
regularExpression
String

A string expression with a regular expression defined to use when searching.

searchModifier
String

An optional string expression with the selected modifiers to use with the regular expression.

Returns

Returns true if the string matches the regex expressions; otherwise, false.

Examples

var matched = documents.Where(document => document.Name.RegexMatch(<regex>, <search_modifier>));

Applies to