[exim] pcre matching

Pàgina inicial
Delete this message
Reply to this message
Autor: David Saez Padros
Data:  
A: EXIM mailing list
Assumpte: [exim] pcre matching
Hi !!

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 /\@china\.com/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 ...

[debian exim]# pcretest
PCRE version 4.5 01-December-2003

re> /[a-z]/
data> david@???

0: d

[debian exim]# /usr/local/exim/bin/exim -be
> ${if match {david@???}{/[a-z]/}{1}{0}}

0

--
Thanx & best regards ...

----------------------------------------------------------------
    David Saez Padros                http://www.ols.es
    On-Line Services 2000 S.L.       e-mail  david@???
    Pintor Vayreda 1                 telf    +34 902 50 29 75
    08184 Palau-Solita i Plegamans   movil   +34 670 35 27 53
----------------------------------------------------------------