On 2025/12/17 8:30 PM, Johnnie Adams via Exim-users wrote:
I have made this lookup work by doing something which it seems I
shouldn't've had to do: I replaced the escaped period with a bracketed
period, thus: {${sg {$value}{[.]list}{}}}fail} . I tried other things
before this, like stripping the slash and doubling the slash, but none of
those worked. Should I report this as a bug, or is there something deep I
don't get?
Look carefully at the debug for the (whole) expansion, using the backslashed
period
version. I think you'll find that the initial string-processing interprets
the backslash, leaving just a period. This is then the regex, passed to the
regex engine; and a period there is "any single char". Presumably that is not
what you wanted, and you wanted to get the sequence "backslash, period" as the
regex.
The "doubled backslash" should have done that. I'd suggest looking at the
debug for that case, to determine where in the processing sequence it does
not result in what you expect.
--
Cheers,
Jeremy
--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/