# EnableRegexForceCorrection

Parameter `EnableRegexForceCorrection` specifies whether to enable forced correction based on the regular expression pattern.

## JSON Structure

**Location in template:**

```
LabelRecognizerTaskSettingOptions[i]
    └── SectionArray[j] (Section object)
        └── StageArray[k] (Stage object where Stage = "SST_RECOGNIZE_RAW_TEXT_LINES")
            └── EnableRegexForceCorrection
```

**Parent object:** [RecognizeRawTextLinesStage](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/label-recognizer-task-settings/stage-recognize-raw-text-lines.md)

**Example:**

```json
{
    "EnableRegexForceCorrection": 1
}
```

> [!NOTE]
> - This snippet shows only the `EnableRegexForceCorrection` parameter.
> - To use it, embed this parameter within a [RecognizeRawTextLinesStage](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/label-recognizer-task-settings/stage-recognize-raw-text-lines.md) object.
> - For the complete JSON structure, see:
>   - [Full JSON Structure](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/index.md)
>   - [Minimal Valid JSON](https://www.dynamsoft.com/capture-vision/docs/core/parameters/reference/index.md#minimal-valid-json)

## Parameter Details

| EnableRegexForceCorrection Parameter Details |
| :----------------------------------- |
| **Type**<br>*int* |
| **Range**<br>0, 1|
| **Default Value**<br>1 |
