Re: [Exim] Regex Help

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jeff McAdams
Ημερομηνία:  
Προς: Marc Perkel, exim-users
Αντικείμενο: 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 ]
--