McAfee MEJCAE-AM-DA Product Guide - Page 161
B Attaching Regular Expressions to Signatures
View all McAfee MEJCAE-AM-DA manuals
Add to My Manuals
Save this manual to your list of manuals |
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