Prev | Current Page 1640 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

com
test input: a @ bob . com
test returns: bob+|+com . FOUND
Note that here the bob+|+com is a single token.
You can opt to have the original key returned. This is done by specifying the -m database
switch:
Kmatch regex -s2,3 -m -d+|+ -a.FOUND (\|\)@(\|\).(\|\)
Note that the -m switch overrides the presence of the -s and -d switches:
> test a@bob.com
test input: a @ bob . com
test returns: a @ bob . com . FOUND
23.7.20.3 The -n regex database-map switch
The -n switch inverts the entire sense of the regular expression lookup. It returns a
successful match only if the regular expression does not match. Consider:
Kmatch regex -m -n -a.FOUND (\|\)@(\|\).(\|\)
If you view the effect of this switch in rule-testing mode, you will see that the result is
inverted:
> test a@bob.com
test input: a @ bob . com
test returns: a @ bob . com
> test x@y.net
test input: x @ y . net
test returns: x @ y . net . FOUND
23.7.20.4 The -s regex database-map switch
The -s database-map switchis used withth e regex type to specify a substring to matchand
return. To illustrate, consider the following mini configuration file:
V10
Kmatch regex -s (\|\)
Stest
R $* $@ $(match $1 $)
The regular expression looks to match either the name bob or the name ted, but no other
names.


Pages:
1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652
dieta light śmieszne dowcipy życzenia ślubne pozycjonowanie Jaki wybrać olej