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

Todd Merritt tmerritt at email.arizona.edu
Fri Jun 27 10:07:04 PDT 2003


Contains does not allow wildcards.  Matches allows * and ?, and regex
allows full regular expressions.

Todd

On Fri, 2003-06-27 at 09:22, Michael M Slusarz wrote:
> 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
> 
> -- 
> Horde developers mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org




More information about the dev mailing list