Re: [Exim] Regular Expressions in Filters

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Marc Perkel
CC: exim-users
Betreff: Re: [Exim] Regular Expressions in Filters
On Fri, 5 Oct 2001, Marc Perkel wrote:

> OK - I just don't get regular expressions.


References:

1. Mastering Regular Expressions, by Jeffrey Friedl. Published by O'Reilly.
2. The Regular Expressions appendix in my Exim book.

> "The quick brown fox jumps over the lazy dog."
>
> I want a regular expression that tests for "quick brown" and "jumps" and
> "lazy" and it's better if the order doesn't matter. Must contail all
> three phrases.
>
> How do I do this?


(?=quick brown)(?=jumps)(?=lazy)

That is, three lookahead assertions.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.