Re: [Exim] Regular Expressions in Filters

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Marc Perkel
CC: exim-users
Subject: 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.