Re: [Exim] Regex matching

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Tony Byers
日付:  
To: exim-users
題目: Re: [Exim] Regex matching
Thanks for the help, but I still have a problem. From the command line,

Exim -be, it matches fine, but when I put it into the configure and use
$local_part it won't match.

Tony Byers

---- Phil Pennock <Phil.Pennock@???> wrote:
> On 2001-03-13 at 10:15 -0500, Tony Byers gifted us with:
> > > This: /^....-[^-]+-[^-]+-[^-]+$/
> > > which becomes for Exim: ^....-[^-]+-[^-]+-[^-]+\\$
>
> Ooops. Only one backslash. Sorry.
>
> > I changed the line to:
> >
> > new_address = ${if match{$local_part}{^....-[^-]+-[^-]+-[^-]+\\$}{one}{two}}@???
> >
> > and I get this error in the log
> > 2001-03-13 10:00:47 14cqI2-0003Cb-00 Expansion of ${if match{$local_part}{^....-[^-]+-[^-]+-[^-]+\\$}{one}{two}}@???
> > in special_dir director failed: $ not followed by letter, digit,
> or {
>
> To test, try "exim -be"
>
> % exim -be
> > ${if match{ss01-cse-498-1}{^....-[^-]+-[^-]+-[^-]+\\$}{one}{two}}
> Failed: $ not followed by letter, digit, or {
> > ${if match{ss01-cse-498-1}{^....-[^-]+-[^-]+-[^-]+\$}{one}{two}}
> one
> >
>
> This solved it quickly. Sorry for the brain malfunction.
> --
> Hal, open the file
> Hal, open the damn file, Hal
> open the, please Hal
>


___________________________________________________________________
To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
all in one place - sign up today at http://www.zdnetonebox.com