[exim] Re: Exim filter get number before the dot

Página Inicial
Delete this message
Reply to this message
Autor: Jeremy Harris
Data:  
Para: exim-users
Assunto: [exim] Re: Exim filter get number before the dot
On 09/09/2023 22:33, Sławomir Dworaczek via Exim-users wrote:
> Unfortunately, any attempts to use regular expressions that attempt to retrieve the number before the digit result in an error
>
>
> $h_X-Spam-Potential:{{^(\\d+).*\$}{\$1}} is above 16


That's written to be ambiguous, even with the questionable
dounbled backslash (compare with your original):
more-than-one digit (grabbed) followed by any number of anything,
then end-of-line.

I'd suggest going for at-least-one digit followed by an explicit dot.
--
Cheers,
Jeremy


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/