McAfee MEJCAE-AM-DA Product Guide - Page 161

B Attaching Regular Expressions to Signatures

Page 161 highlights

B Attaching Regular Expressions to Signatures This appendix describes the purpose of attaching a regular expression to a signature, lists the special characters used in a regular expression, and defines the regular expression syntax used in E-Business Server. Attaching a regular expression to a signature The purpose of a regular expression on a signature is to restrict the scope of the target key's signature power. For example, a corporate administrator might place a signature with an attached regular expression on a sub-administrator, who controls the HR department, that states that he/she can only sign keys from "hr.mcafee.com". The following special characters can be used in a regular expression: • a pipe (|) • parenthesis ( ) • an asterisk (*) • a plus sign (+) • a question mark (?) • brackets [ ] • a period (.) • a caret (^) • a dollar sign ($) When using any of these characters in a regular expression, put a backslash (\) in front of a literal character to distinguish it from one of the special characters. For example, the following regular expression matches any email address from test.com, such as . Definitions of the regular expression syntax used in E-Business Server • A regular expression is zero or more branches separated by a pipe (|). The regular expression matches anything that matches one of the branches. • A branch is zero or more pieces, concatenated. The branch looks for a match for the first piece, then looks for a match for the second piece, etc. • A piece is an atom possibly followed by one of these characters: an asterisk (*), a plus sign (+), or a question mark (?). • An atom followed by an asterisk (*) matches a sequence of 0 or more matches of the atom. • An atom followed by a plus sign (+) matches a sequence of 1 or more matches of the atom. • An atom followed by a question mark (?) matches a match of the atom or the null string. E-Business Server™ 8.6 Product Guide 159

  • 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
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188

E-Business Server
8.6
Product Guide
159
B
Attaching Regular Expressions to Signatures
This appendix describes the purpose of attaching a regular expression to a signature, lists the special
characters used in a regular expression, and defines the regular expression syntax used in E-Business
Server.
Attaching a regular expression to a signature
The purpose of a regular expression on a signature is to restrict the scope of the target key’s signature
power. For example, a corporate administrator might place a signature with an attached regular expression
on a sub-administrator, who controls the HR department, that states that he/she can only sign keys from
“hr.mcafee.com”.
The following special characters can be used in a regular expression:
a pipe (
|
)
• parenthesis
( )
an asterisk (
*
)
a plus sign (
+
)
a question mark (
?
)
• brackets
[ ]
a period (
.
)
a caret (
^
)
a dollar sign (
$
)
When using any of these characters in a regular expression, put a backslash
(
\
) in front of a literal character to distinguish it from one of the special characters.
For example, the following regular expression matches any email address from test.com, such as
<.*@test\.com>
Definitions of the regular expression syntax used in E-Business Server
• A
regular expression
is zero or more branches separated by a pipe (
|
). The regular expression matches
anything that matches one of the branches.
• A
branch
is zero or more pieces, concatenated. The branch looks for a match for the first piece, then looks
for a match for the second piece, etc.
• A
piece
is an atom possibly followed by one of these characters: an asterisk (
*
), a plus sign (
+
), or a
question mark (
?
).
An atom followed by an asterisk
(
*
) matches a sequence of 0 or more matches of the atom.
An atom followed by a plus sign (
+
) matches a sequence of 1 or more matches of the atom.
An atom followed by a question mark (
?
) matches a match of the atom or the null string.