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

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Michael Haardt
Fecha:  
A: exim-users
Asunto: Re: [Exim] String expansion: repeat a character sequence n times
> For example, I'd like something like this
>
>     ${repeat{\\+}{3}}

>
> to produce this:
>
>     \+\+\+

>
> "Does such a thing exist?" he asked, somewhat hopefully. I've read
> "String expansions" through and can't find it, but perhaps it's a new
> feature that's arrived since 4.20?


I am not aware of it and exiscan adds a variable which contains such
a bar for probably that reason.

If an upper limit suffices, you could extract a substring of n characters
from a long sequence of "+" characters. Sure it's a hack, but it might
solve your problem.

Michael