Re: [exim] Wrong regular expressione

Top Page
Delete this message
Reply to this message
Author: Dennis Davis
Date:  
To: exim-users
Old-Topics: [exim] Wrong regular expression
Subject: Re: [exim] Wrong regular expressione
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