To create a custom regular expression:
-
From the Regular Expression Library dialog, in the User-Defined Regular Expressions section, click Add. The Edit Regular Expression Entry dialog box is displayed.
Note:
The Edit Regular Expression Entry dialog box displayed here is slightly different from the dialog box that is displayed when you are editing a system default regular expression.
- To add a regular expression, enter the form of the expression in the Regular Expression: field.
- To set case sensitivity as a consideration when matching extracted values to the regular expression, select Case Sensitive. If this option is not selected, case will not be considered when matching extracted values to the regular expression.
- To test sample text against the form of the regular expression, enter the text in the Sample Text: field and click Test. A message is displayed, indicating whether the form of the regular expression was matched to the sample text.
- Enter a description of the regular expression in the Description: field.
- To save your changes, click Save.
- To cancel your changes, click Cancel.
-
Once you have saved your changes to a custom expression, it is added to the User-Defined Regular Expressions section in the Regular Expression Library dialog.
-
To delete a custom expression, select it from the list of User-Defined Regular Expressions and click Delete.
Note:
System default expressions, as well as custom expressions that have been assigned to a form's Data Field Zones or Keyword Lookup/Replace dictionary, cannot be deleted.