Re: [Exim] Regex Help

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jeff McAdams
Fecha:  
A: Marc Perkel, exim-users
Asunto: Re: [Exim] Regex Help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--
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.
--
Jeff McAdams
"He who laughs last, thinks slowest." -- anonymous
--
[ Content of type application/pgp-signature deleted ]
--