# MainFieldRegex<N>

The `MainFieldName<N>` and `MainFieldRegex<N>` parameters name and populate a document field within the main document.

The document field named in the `MainFieldName<N>` parameter is populated by the content identified by the `MainFieldRegex<N>` parameter. Each pair of parameters produces a single document field.

The data used to populate the field must be in the range defined by the `MainRangeRegex` parameter.

The regular expressions used in the `MainFieldRegex` parameter can contain sub-matches (enclosed in parentheses). If multiple sub-matches are found, the sub-matches are concatenated (separated by spaces).

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

_FT_HTML5_bannerTitle.htm