Re: [Exim] Regex Help

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Marc Perkel
Fecha:  
A: exim-users
Asunto: Re: [Exim] Regex Help
Thanks for the try - but I was looking for the opposite logic.

I figured it out:

\*https?\:\/\/(?!.{0,20}yahoo)

Jeff McAdams wrote:

> Marc Perkel wrote:
>
>> I need some help writing a regex to find this condition:
>
>
>> looking for the string "*http://" <---- yes the "*" is part of the
>> string
>
>
>> that is not followed by "yahoo" within 10 characters.
>
>
>> So - *http://www.porn.com --- matches
>
>
>> but *http://news.yahoo.com --- fails
>
>
> /\*http:\/\/.{0,10}yahoo/
>
> Should be close, I think. Untested, so try it out and see if that works.