Hi,
When using ${match} or ${sg} with a regular expression, it is case
sensitive:
[EMAIL PROTECTED]:~# exim4 -be '${if match{FOO}{\N^[a-z]+$\N}{true}{false}}'
false
[EMAIL PROTECTED]:~#
However, and here's what I think is a bug. Wildlsearch seems to be case
insensitive when doing regex matches:
[EMAIL PROTECTED]:~# echo -ne '\N^[a-z]+$\N' > /tmp/test
[EMAIL PROTECTED]:~# exim4 -be
'${lookup{FOO}wildlsearch{/tmp/test}{true}{false}}'
true
[EMAIL PROTECTED]:~#
I expected that to return false... Even if I try to force the regex to
be case sensitive it doesn't behave so:
[EMAIL PROTECTED]:~# echo -ne '\N^(?-i)[a-z]+$\N' > test
[EMAIL PROTECTED]:~# exim4 -be
'${lookup{FOO}wildlsearch{/tmp/test}{true}{false}}'
true
[EMAIL PROTECTED]:~#
Shall I plonk this into bugzilla, or have I just missed some
documentation that explains this behaviour? I can't find any...
Mike
--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/