Re: [Exim] Filter file RegExp problem

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Carl Inglis
CC: exim-users
Subject: Re: [Exim] Filter file RegExp problem
On Fri, 3 Aug 2001, Carl Inglis wrote:

> # Exim filter <<== do not edit or remove this line!
>
> if error_message then finish endif
>
> if ${sg{$header_to:,$header_cc:}{\n}{}} matches "(*\@*){6,}" then


I don't understand why you have writteh \@ because @ is not a special
character in regular expressions or in expansion strings.

I'm surprised that you aren't getting an error message, because

(*@*){6,}

is not a valid regex. Don't you mean something like

(.*@){6,}

? Or, most probably,

([^@]+@){6,}

Have a play with the pcretest program to check out your regexes.

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