Manage regular expressions

You can create, modify, copy, and delete a regular expression on the Regular expressions page.

To open the Regular expressions page, navigate to System data > Regular expressions.

Create a regular expression

Create regular expressions to identify and normalize items in a document.

Procedure
  1. On the Regular expressions page, select New.

    The New regular expression dialog box is displayed.

  2. Enter a Name for the regular expression.

    The name cannot exceed 50 characters.

  3. In the Expression field, enter the regular expression text.

    The expression text cannot exceed 500 characters.

  4. To test the validity of the regular expression, enter the expression in the Sample field.

    While entering the sample expression, the system indicates whether the expression is valid.

  5. Select Save.

    The regular expression is added to the list on the Regular expressions page.

    You can sort the regular expressions in alphabetical order by name and expression.

    When you create a text field on a form, any new or updated expressions are automatically available for use in the Format property. See Properties of a text box for more information.

Modify a regular expression

Modify a regular expression to change the regular expression text.

Procedure
  1. On the Regular expressions page, to display the regular expressions within a specific category, select the category on the Category list.

    Alternatively, to display a specific regular expression, enter the name of the expression in the Search field and select .

  2. Select the expression to modify.
    The Edit regular expression dialog box is displayed.
  3. Make changes as needed.
  4. Save the expression.

Copy a regular expression

Copy a regular expression to reuse an existing pattern and make minor modifications without affecting the original.

Procedure
  1. On the Regular expression page, on the context menu of the expression to copy, select Copy.
    The New regular expression dialog box displays the copy of the expression prefixed with "CopyOf_<expressionname>1".
  2. Make changes, such as renaming the expression and changing the expression.
  3. Save the expression.

Delete a regular expression

Delete a regular expression when it is no longer required, is incorrect, or has been replaced by another validation or extraction method.

Before you begin

Make sure it is no longer referenced by any document types, locators, validation rules, processes, or other configurations that depend on it.

Procedure
  1. On the Regular expression page, on the context menu of the regular expression to delete, select Delete.
  2. When prompted, select Yes to confirm deletion.
    The regular expression is deleted.