David Saez Padros wrote:
I'm trying to get some Perl regexp stollen elsewhere to work in exim
but have some problems and my knowledge of pcre is very limited.
It looks like exim does not like expression surrounded by /
like /[a-z]/ or /[EMAIL PROTECTED]/i , should i remove the surrounding
/ or there is a way to get it working ? in fact they work with
pcretest but not in exim ...
Exim expansion conditions use {} to delimit regexes (like all strings),
instead of //.
[debian exim]# /usr/local/exim/bin/exim -be
> ${if match [EMAIL PROTECTED]/[a-z]/}{1}{0}}
0
${if match [EMAIL PROTECTED]
You may need to wrap the regex in \N to disable escaping within the
regex. See chapter 11 for more details.
- Marc
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/