DocumentFilterCreateFilePathRegularExpression Method (String, RegexOptions)
Creates a filter for skipping documents that are not match a regular expression. The regular expression is applied to the full path of a document.

Namespace: GroupDocs.Search.Options
Assembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 21.8
Syntax
public static DocumentFilter CreateFilePathRegularExpression(
	string pattern,
	RegexOptions options
)

Parameters

pattern
Type: SystemString
The regular expression pattern.
options
Type: System.Text.RegularExpressionsRegexOptions
The regular expression options.

Return Value

Type: DocumentFilter
A document filter by file name.
See Also