# FolderCantHaveRegex

A regular expression to restrict the folders that are processed.

Folders with paths that match the regular expression are not processed.

If a folder is excluded by this parameter, its subfolders are not excluded unless they also have paths that match the regular expression.

To exclude a large number of folders, consider using `FolderCantHaveRegexToCrawl`.

Type: | Regular Expression
Default: |
Required: | No
Configuration Section: | TaskName or FetchTasks or Default
Example: |
    FolderCantHaveRegex=^//Top of Information Store/Inbox/Folder$
The connector does not retrieve any items from `//Top of Information Store/Inbox/Folder`, but items in subfolders of `Folder` are still retrieved.
    FolderCantHaveRegex=^//Top of Information Store/Inbox/Folder(/.*)?$
The connector does not retrieve any items from `//Top of Information Store/Inbox/Folder`, or its subfolders. In this case, consider using the parameter `FolderCantHaveRegexToCrawl` instead.
See Also: | FolderCantHaveRegexToCrawl FolderMustHaveRegex FolderMustHaveRegexToCrawl

_FT_HTML5_bannerTitle.htm