[dev] Re: [cvs] commit: ingo/lib/Script sieve.php ingo/lib Script.php ingo/config tests.php.dist

Michael M Slusarz slusarz at bigworm.colorado.edu
Fri Jun 27 09:22:57 PDT 2003


Quoting Jan Schneider <jan at horde.org>:

| Zitat von Michael M Slusarz <slusarz at bigworm.colorado.edu>:
|
| > slusarz     2003/06/27 00:04:19 PDT
| >
| >   Modified files:
| >     lib/Script           sieve.php
| >     lib                  Script.php
| >     config               tests.php.dist
| >   Log:
| >   Submitted by: Todd Merritt <tmerritt at email.arizona.edu>
| >   Add regex, matches, and not matches tests to Sieve class.
|
| Can someone explain what exactly the difference is between "contains",
| "matches" and "regex"? Would be hard to translate otherwise. ;-)

If I understand correctly, 'contains' means that the search string must
appear somewhere in the header, 'matches' means the search string must be
*exactly* the same as the header, and 'regex' means the search string is
used as a regular expression to search the header.

michael


______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the dev mailing list