1. GroupDocs.Search
  2. /
  3. GroupDocs.Search for .NET
  4. /
  5. GroupDocs.Search.Options
  6. /
  7. SearchDocumentFilter
  8. /
  9. CreateFilePathRegularExpression

CreateFilePathRegularExpression

CreateFilePathRegularExpression(string)

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.

public static ISearchDocumentFilter CreateFilePathRegularExpression(string pattern)
Parameter Type Description
pattern String The regular expression pattern.

Return Value

A search document filter by file name.

See Also


CreateFilePathRegularExpression(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.

public static ISearchDocumentFilter CreateFilePathRegularExpression(string pattern, 
    RegexOptions options)
Parameter Type Description
pattern String The regular expression pattern.
options RegexOptions The regular expression options.

Return Value

A search document filter by file name.

See Also