Re: [Exim] String expansion: repeat a character sequence n t…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Sheldon Hearn
Fecha:  
A: Christian Vogel
Cc: exim-users
Asunto: Re: [Exim] String expansion: repeat a character sequence n times
On (2003/11/30 15:11), Christian Vogel wrote:

> >       match {$h_X-Spam-Score:}{${repeat{\\\\+}{MAILBOX_SPAMTAG_THRESH}}} \

>
> have you tried this?
>         match {$header}{\+{MAILBOX_SPAMTAG_THRESH,}}

>
> In regular expressions you can use "pattern{1,5}" to mean
> "from one up to 5 times the pattern" or pattern{7,} to mean
> "minimum of 7 times the pattern".


Duh, that's much simpler than what I came up with.

Nice idea, thanks.

Ciao,
Sheldon.