SearchDocumentFilterCreateFilePathRegularExpression 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.1
Syntax
public static ISearchDocumentFilter 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: ISearchDocumentFilter
A search document filter by file name.
See Also