Using Perl Regular Expressions - Fortinet FortiGate FortiGate-1000A Administration Manual

Fortinet fortigate fortigate-1000a: user guide
Hide thumbs Also See for FortiGate FortiGate-1000A:
Table of Contents

Advertisement

Using Perl regular expressions

Using Perl regular expressions
358
2
Select Create New to add a banned word or select Edit for the banned word you want
to modify.
Figure 188:Adding a banned word
3
Enter the word or phrase.
4
Select the language (character set).
5
Select the location.
6
Select the action to take on email containing the banned word.
7
Select Enable.
8
Select OK.
Email address list, MIME headers list, and banned word list entries can include
wildcards or Perl regular expressions.
See http://www.perldoc.com/perl5.8.0/pod/perlre.html for detailed information about
using Perl regular expressions.
Regular expression vs. wildcard match pattern
In Perl regular expressions, '.' character refers to any single character. It is similar to
the '?' character in wildcard match pattern. As a result:
fortinet.com not only matches fortinet.com but also matches fortinetacom,
fortinetbcom, fortinetccom and so on.
To match a special character such as '.' and '*' use the escape character '\'. For
example:
To mach fortinet.com, the regular expression should be: fortinet\.com
In Perl regular expressions, '*' means match 0 or more times of the character before it,
not 0 or more times of any character. For example:
forti*\.com matches fortiiii.com but does not match fortinet.com
To match any character 0 or more times, use '.*' where '.' means any character and
the '*' means 0 or more times. For example, the wildcard match pattern forti*.com
should therefore be fort.*\.com.
01-28011-0254-20051115
Spam filter
Fortinet Inc.

Advertisement

Table of Contents
loading

Table of Contents