Putting predefined regular expressions into content filtering policy conditions

book

Article ID: 179725

calendar_today

Updated On:

Products

Messaging Gateway

Issue/Introduction

 

Resolution

Putting predefined regular expressions into content filtering policy conditions

You can copy an expression from a policy template and modify it as needed. You can put the modified expression directly into a content filtering policy condition. Or you can also put the expression in a new pattern or an existing pattern so that you can reuse it.

See About content filtering policy templates.

See Configuring content filtering policy conditions.

Table: Process to access, copy, and paste expressions from templates describes the tasks to take to copy an existing regular expression from a template and use it in a content filtering policy condition.

Table: Process to access, copy, and paste expressions from templates

Step

Task

1

Identify the policy template that contains the regular expression that you want to use.

Note:
Policy template conditions do not identify regular expressions by name.

See Predefined regular expressions.

2

Follow the procedure to set up a new content filtering policy from a template. This task lets you access the expressions in the policy template that you want to copy.

See Selecting the content filtering policy template.

In policy templates where more than one regular expression appears, identify the regular expression that is appropriate for the condition that you want to define. If you are unsure about which regular expression to use, check the conditions for the particular policy template in which the regular expression appears.

3

Copy the regular expression that you want to use from the template.

4

Paste the regular expression to any of the following locations, and then make any desired modifications:

  • Pattern

    You can copy the expression to an existing pattern or to a new pattern. When you use an expression in a pattern, the regular expression appears when you select Matches pattern or Does not match pattern on the Content Filtering Policy Condition page.

    Create custom patterns for regular expressions you intend to use in more than one policy.

    See Creating your own custom patterns.

    See Editing patterns.

  • Content filtering policy condition

    You can copy the expression to a new content filtering policy condition or a policy condition that already exists. Copy the text to the text box beside the regular expression drop-down list on the Content Filtering Policy Condition page, and modify it as needed.

    Do this task if you only need to use the regular expression for a condition once. The regular expression is saved as a condition of the policy that you create. But it does not appear as a pattern resource for use in other policies.

    See Configuring content filtering policy conditions.