Re: [EXIM] Regular expressions.

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Friso Kuipers
Date:  
À: exim-users
Sujet: Re: [EXIM] Regular expressions.

On 16 Mar, Philip Hazel wrote:

> On Tue, 16 Mar 1999, Friso Kuipers wrote:
>
>> On the other hand, all mail to the outsite world can get send out right
>> away. After studying the pcre man page for some time I came up with
>> this:
>>
>> queue_smtp_except = ^(?i)([^.]+)\.(?!frop\.org)(.*)$
>>
>> Works fine, but needs refining. For instance, mail for
>> 'host.frop.org.uk' would get queued also.
>
> This is the most efficient way to code "not ending with" in a regular
> expression:
>
> queue_smtp_except = ^(?i)^(?>.*)(?<!frop.org)
>


I get an "unrecognised character error" for '<' even when setting the
(?X) flag.

Any clues?
Friso Kuipers.



--
*** Exim information can be found at http://www.exim.org/ ***