McAfee MIS70E001RCA User Guide - Page 134

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

Page 134 highlights

McAfee SpamKiller 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 "\)". 134 McAfee® Internet Security Suite®software

  • 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
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145

McAfee SpamKiller
134
McAfee
®
Internet Security Suite
®
software
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 “\)“.