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.
Augment the regular expression by including a dictionary. The words in the dictionary can be found within a composite expression, thus eliminating the need to add complex syntax to account for these words.
Configure a regular expression validation
- On the Type list, select Regular expression (default).
and configure the following settings.
Select a predefined format or click and define a format.
A description for the format.
The text to display if validation fails. By default, the following message is displayed:
Field item does not match any of the given expressions.
If selected, ignores cases. (Default: Clear)
If selected, ignores blank characters. (Default: Clear)
Allows you to add the characters to ignore for the selected format during validation.
- Click Add.
Configure the following
- Select Allow empty fields to allow blank fields to be valid during validation. (Default: Clear, which means the empty fields are marked as invalid.)
- 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)
To test the regular expression validation settings, enter sample text in the
Test input text field and click
A message appears to inform whether the rule is valid.
- Click Save.