[exim] Re: Wrong regular expression

Startseite
Nachricht löschen
Nachricht beantworten
Autor: garlic
Datum:  
To: exim-users
Betreff: [exim] Re: Wrong regular expression

Dennis Davis Wrote:
> On Thu, 3 Nov 2005, garlic wrote:
>
> > From: garlic <astenax@???>
> > To: exim-users@???
> > Date: Thu, 3 Nov 2005 04:26:08 -0500
> > Subject: [exim] Wrong regular expression
> >
> > I want check $local_part with follow regular expression:
> >
> > sms2email:
> > driver = redirect
> > allow_fail = true
> > allow_defer = true
> > domains = +local_domains
> > #Correct or not follow string?
> > condition = ${if match {$local_part}{^342345\d{4}$}{no}{yes}}
>
> See page 107 of the manual. You probably want to write:
>
> condition = ${if match {$local_part}{\N^342345\d{4}$\N}{no}{yes}}
>
> to ensure that the regular expression isn't expanded...not that I've
> tested this...
> -- 
> Dennis Davis, BUCS, University of Bath, Bath, BA2 7AY, UK
> D.H.Davis@???               Phone: +44 1225 386101

>
> --
> ## 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/



Thank you very much for your help, Dennis. It's my first experience
working with Exim :)


--
garlic
------------------------------------------------------------------------
garlic's Profile: http://www.exim-users.org/forums/member.php?action=getinfo&userid=68
View this thread: http://www.exim-users.org/forums/showthread.php?threadid=50957