Re: [Exim] PCRE question in system filter

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tabor J. Wells
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] PCRE question in system filter
Ok. I've figured out the answer but I'm not sure I that I understand
fully.

The correct pattern is:

"\\\\s{10,}\\\\[\\\\w{4,8}\\\\]"

But what I don't understand is why when I wanted to match:

]_by

it was sufficient to do "\]_by"

Tabor

On Sat, Apr 21, 2001 at 03:44:30PM -0400,
Tabor J. Wells <twells@???> is thought to have said:

> I'm having trouble with a regular expression match in my system filter
> and I'm just not seeing what I'm doing wrong. I've been over the PCRE
> doc several times and I think what I'm doing is correct but it still
> doesn't match.
>
> To match:
>
> Subject: Something                     [abcde]

>
> I'm using:
>
> $h_subject matches "\\\\s{10,}\[\\\\w{4,8}\]"
>
> an exim -d9 -bF shows:
>
> Match expanded arguments:
>   Subject = Something                     [abcde]
>   Pattern = \s{10,}[\w{4,8}]
> Sub-condition is false: $h_subject matches \\s{10,}[\\w{4,8}]

>
> What am I missing here?
>
> Thanks,
>
> Tabor
>
> -- 
> --------------------------------------------------------------------
> Tabor J. Wells                                     twells@???
> Fsck It!                 Just another victim of the ambient morality

>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##


-- 
--------------------------------------------------------------------
Tabor J. Wells                                     twells@???
Fsck It!                 Just another victim of the ambient morality