Create or edit an advanced Content Control List

If you use role-based administration, you must have the Data control customization right to create a Content Control List. For more information, see Managing roles and sub-estates.

For an overview of Content Control Lists, see About Content Control Lists.

You can create a Content Control List that consists of one or more regular expressions and a trigger score. To do this, use the advanced editor.

To create or edit a Content Control List using the advanced editor:

  1. On the Tools menu, point to Manage Data Control, and then click Data Control Content Control Lists.
  2. In the Content Control List Management dialog box, click Add to create a new Content Control List, or select an existing Content Control List and click Edit.
  3. In the Add Content Control List dialog box, in the Name field, enter a name for the Content Control List.
  4. In the Description field, enter a description for the Content Control List, if you wish.
  5. If you want to add tags or edit the tags assigned to the Content Control List, click Change next to the Tags field.

    You can assign tags to identify the Content Control List's type and region where it applies.

  6. In the Edit Content Control List Tags dialog box, in the Available tags list, select the tags you want to assign and move them to the Selected tags list. Click OK.
  7. Click the Advanced button.
  8. In the Advanced pane, click Create to create a new expression, or select an existing expression and click Edit.
  9. In the Content Control List - Advanced dialog box, enter a Perl 5 regular expression.

    For a description of Perl 5 regular expressions, refer to Perl documentation or visit http://www.boost.org/doc/libs/1_34_1/libs/regex/doc/syntax_perl.html.

  10. In the Expression score field, enter the number that will be added to the total score for a Content Control List when the regular expression is matched.
  11. In the Maximum count field, enter the maximum number of matches for the regular expression that can be counted towards the total score.
    For example, an expression with the score of 5 and the maximum count of 2 can add the maximum of 10 to the total score of the Content Control List. If the expression is found 3 times, it still adds 10 to the total score.
    1. Click OK.
  12. Repeat steps 5 to 11 if you want to add more regular expressions to the Content Control List.
  13. In the Trigger score field, enter the number of times a regular expression must be matched before the Content Control List is matched.

    For example, consider a Content Control List that has the trigger score of 8 and consists of 3 expressions (A, B, and C) with the following scores and maximum counts:

    Expression

    Score

    Maximum count

    Expression A

    5

    2

    Expression B

    3

    1

    Expression C

    1

    5

    This Content Control List is matched if data control finds 2 matches of expression A or 1 match of expression A and 1 match of expression B, or 1 match of expression B and 5 matches of expression C.

    Click OK.

The new Content Control List appears in the Content Control List Management dialog box.

Regular expression example

(?i)\b[a-ceghj-npr-tw-z][a-ceghj-npr-tw-z]\s?\d{2}\s?\d{2}\s?\d{2}\s?[abcd]?\b

This regular expression matches UK National Insurance numbers, for example, AA 11 11 11 A.

(?i)

Makes the match case-insensitive.

\b

Matches a boundary between a word character and a non-word character.

[a-ceghj-npr-tw-z]

Matches any single character in the range of characters (A to C E G H J to N P R to T W to Z).

?

Matches the preceding element zero or one time.

\s?

Matches zero or one whitespace.

\d{2}

Matches two digits.

[abcd]

Matches any single character from the list (A, B, C, or D).

Now you can add the new Content Control List to a content rule.