OneDrive Connector 25.3
OneDrive Connector Help

# PathMustHaveRegex

A list of regular expressions to limit the files that are retrieved by the connector. The connector only retrieves files from folders where:

- the full path of the folder matches one of the regular expressions.
- the full path of all parent folders (up to the root folder) match one of the regular expressions.

(If a folder does not match at least one of the regular expressions, all of its subfolders are ignored, even if those folders do match a regular expression).

You can specify a comma-separated list of regular expressions, or use numbered parameters (`PathMustHaveRegex0`, `PathMustHaveRegex1`, and so on).

Type: | String (regular expression)
Default: |
Required: | No
Configuration Section: | TaskName or FetchTasks or Default
Example: | `PathMustHaveRegex0=.*IndexThis.* PathMustHaveRegex1=/IndexThis/` (where the root directory contains a folder named `IndexThis` or `***IndexThis***`)
See Also: | FileNameCantHaveRegex FileNameMustHaveRegex PathCantHaveRegex

Copyright 2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery OneDrive Connector 25.3

Topic Title: PathMustHaveRegex