Regular expression validation method

Use the Regular expression validation method to create pattern-based restrictions on extracted data. If the extracted data does not match the expression pattern, it is marked invalid.

For example, create a regular expression to test that an extracted account or customer number follows the expected pattern. If the extracted data does not match the pattern, the account number is marked invalid and needs further processing.

Configure a regular expression validation

  1. On the Type list, select Regular expression (default).
  2. Click and configure the following settings.

    Format

    Select a predefined format or click and define a format.

    Description

    A description of the format.

    Error message

    The text to display if validation fails. By default, the following message is displayed: "Field item does not match any of the given expressions."

    Ignore case

    If selected, ignores cases. (Default: Clear)

    Ignore blanks

    If selected, ignores blank characters. (Default: Clear)

    Ignore characters

    The characters to ignore for the selected format during validation.

  3. Click Add.
  4. Configure the following Options:
    1. Select Allow empty fields to allow blank fields to be valid during validation. (Default: Clear, which means the empty fields are marked as invalid.)
    2. Select Rule makes uncertain extraction results valid to override the execution of validation rules when a field is not extracted confidently or is modified. (Default: Clear)
  5. To test the regular expression validation settings, enter sample text in the Test input text field and click Validate.
    A message appears to inform whether the rule is valid.
  6. Click Save.