Create regular expression classifier

A Regular Expression is a string used to describe or match a set of strings according to certain syntax rules. When the extracted text from a transaction is scanned, the system uses regular expressions to find strings in the text that match patterns for confidential information.

Complete the following steps to create a Regular Expression classifier.

Steps

  1. Navigate to Policy > Policy Elements > Classifiers > Pattern and Phrases.
  2. Click the icon.
  3. From the drop-down menu, select Regular Expression. The regular expression editor opens.
  4. Enter a Name for the expression, such as Visa card.
  5. Enter a Description for this pattern, such as Visa credit card patterns.
  6. In the Value field, enter a regular expression (regex), such as all 3-character strings followed by the sequence 123.
    Note: The expression should be compatible with Perl syntax. For more details, see the section List of valid values.
  7. Under Exclude, select from None, Pattern to exclude, or List of phrases to exclude certain values from the pattern. Exclude should list exceptions to the rule.
    • Pattern to exclude: Define the regex. Type the list of valid values in the column.
    • List of phrases to exclude: Search or type a phrase. Click the Add to list to add them to the list. These phrases will be excluded from matches when using this classifier. Click Remove from list to remove selected strings from the list.
  8. Click the Save button. The new classifier will be saved in the classifiers list.