The left-hand side of rewriting rules contains a pattern. Normal words are matched directly. Dollar signs introduce "metasymbols," which match items other than simple words, like macros or classes. Table 3-11 shows the metasymbols.
Table 3-11 sendmail Left-Hand Side Metasymbols
Symbol |
Matches |
---|---|
Zero or more tokens |
|
One or more tokens |
|
Exactly one token |
|
Any string in class x |
|
Any token not in class x |
|
Macro x |
If any of the patterns match, it is assigned to the symbol $n for replacement on the right-hand side, where n is the index in the LHS. For example, the LHS rules can be applied to this input:
$-:$+ |
JUPITER:eric |
The rule will match, and the values passed to the RHS will be:
$1 JUPITER
$2 eric