Re: [exim] Host Pattern Matching

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Marc Perkel
Υ/ο: exim-users, Andreas Pettersson
Αντικείμενο: Re: [exim] Host Pattern Matching
On Fri, 22 Jun 2007, Marc Perkel wrote:

> > hosts = \N^.*\.yahoo\.\N
> > hosts = \N^.*?\.yahoo\.\N
> >
> > The second is a bit more efficient when it matches (about the same when
> > it doesn't).
> >
>
> Thanks for the tip Phil. Why is the second one more efficient?


Because it searches from the front instead of skipping all the way to
the end and then searching backwards.

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book