# MainContentRegex<N>

The `MainContentRegex<N>` parameter defines the content that is extracted as the main document content. The content must be located in the range defined by the `MainRangeRegex` parameter.

This parameter accepts one or more regular expressions. The regular expression can contain sub-matches (enclosed in parentheses). If multiple matches are found, the content is concatenated (separated by new line characters).

For example, to define the main document content as all content that is enclosed by `<p> </p>` tags, set the parameter to:

    MainContentRegex0=<p>(.*)</p>

Type: | String
Default: | None
Required | No
Configuration Section: | Any section that you have defined for TextToDocs settings
Example: | `MainContentRegex0=<p>(.*)</p>`
See Also: | MainRangeRegex<N>

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm