To create a custom regular expression:
-
From the Regular Expression Library dialog box, in the User-Defined Regular Expressions section, click Add. The Regular Expression dialog box is displayed.
- Enter a description of the regular expression in the Regular Expression Description: field.
- To add a regular expression, enter the form of the expression in the Regular Expression: field.
- 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.
- To save your changes, click Add.
- 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 box.
Once you have added custom expressions to the Regular Expression Library, you can edit or delete them as necessary. See the sections below for more information.