Re: [exim] Host Pattern Matching

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Marc Perkel
Date:  
À: exim-users
CC: Andreas Pettersson
Sujet: Re: [exim] Host Pattern Matching


Philip Hazel wrote:
> On Thu, 21 Jun 2007, Andreas Pettersson wrote:
>
>
>> So the answer is to use a regexp instead.
>> hosts = ^.*\.yahoo\.
>>
>
> That's not quite right. Try either of these
>
> 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?