McAfee VLF09E002RAA User Guide - Page 89

Regular expressions, Matches the preceding character zero or more times. For example, zo* matches

Page 89 highlights

Working With Blocked and Accepted Messages Regular expressions Regular expressions are only available for the following filter conditions: The subject, The message text, At least one of the following phrases. These special characters and sequences can be used as regular expressions when defining filter conditions. For example: The regular expression [0-9]*\.[0-9]+ matches floating point numbers given non engineering notation. The regular expression matches: "12.12", ".1212", and "12.0", but not "12" and "12". The regular expression \D*[0-9]+\D* matches all words with numbers: "SpamKi11er" and V1AGRA" but not "SpamKiller" and "VIAGRA". \ Marks the next character as either a special character or a literal. For example, "n"" matches the character "n". "\n" matches a new line character. The sequence "\\" matches "\" and "\(" matches "(". ^ Matches the beginning of input. $ Matches the end of input. * Matches the preceding character zero or more times. For example, "zo*" matches either "z" or "zoo". + Matches the preceding character one or more times. For example, "zo+" matches "zoo" but not "z". ? Matches the preceding character zero or one time. For example, "a?ve?" matches the "ve" in "never". . Matches any single character except a new line character. (pattern) Matches pattern and remembers the match. The matched substring can be retrieved from the resulting Matches collection, using Item [0]...[n]. To match parentheses characters ( ), use "\(" or "\)". 46 McAfee® SpamKiller® software version 7.0

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98

Working With Blocked and Accepted Messages
46
McAfee
®
SpamKiller
®
software version 7.0
Regular expressions
Regular expressions are only available for the following filter conditions:
The
subject
,
The message text
,
At least one of the following phrases
.
These special characters and sequences can be used as regular expressions when
defining filter conditions. For example:
²
The regular expression
[0-9]*\.[0-9]+
matches floating point numbers given non
engineering notation. The regular expression matches: “12.12”, “.1212”, and
“12.0”, but not “12” and “12”.
²
The regular expression
\D*[0-9]+\D*
matches all words with numbers:
“SpamKi11er” and V1AGRA” but not “SpamKiller” and “VIAGRA”.
\
Marks the next character as either a special character or a literal. For example, “n““
matches the character “n“. “\n“ matches a new line character. The sequence “\\“
matches “\“ and “\(“ matches “(“.
^
Matches the beginning of input.
$
Matches the end of input.
*
Matches the preceding character zero or more times. For example, “zo*“ matches
either “z“ or “zoo“.
+
Matches the preceding character one or more times. For example, “zo+“ matches
“zoo“ but not “z“.
?
Matches the preceding character zero or one time. For example, “a?ve?“ matches
the “ve“ in “never“.
.
Matches any single character except a new line character.
(pattern)
Matches pattern and remembers the match. The matched substring can be
retrieved from the resulting Matches collection, using Item [0]...[n]. To match
parentheses characters ( ), use “\(“ or “\)“.