Re: [Exim] [root@charlotte.intern.cats.ms: Bug#53140: direct…

Pàgina inicial
Delete this message
Reply to this message
Autor: Kai Henningsen
Data:  
A: Philip Hazel
CC: exim-users
Assumpte: Re: [Exim] [root@charlotte.intern.cats.ms: Bug#53140: director suffix option problem]
On 21 Mar 2000, at 20:23, Philip Hazel wrote:

> On Tue, 21 Mar 2000, Kai Henningsen wrote:
>
> > > (I hope you aren't now also going to suggest a change to regular
> > > expression matching in PCRE to go for the longest possible match... :-)
> >
> > PCRE mirrors Perl re behaviour, no? So it also has * vs. *?
> > behaviour. And anyway, that doesn't seem to have any relevance
> > whatsoever that I can detect.
>
> I wasn't thinking of * and *?. Consider the regular expression
>
> /cat|catastrophe/
>
> matched against the line
>
> A terrible catastrophe!
>
> What does it match? Longest? I'm afraid not. It matches "cat".


$ perl -e '$x = "A terrible catastrophe\!"; $x =~ /cat|catastrophe/;
print "matched <$&>\n";'
matched <cat>
$

Same as Perl, so nothing wrong as far as I can see.

[;-)]


Regards - Kai Henningsen

-- 
http://www.cats.ms
Spuentrup CTI       Fon: +49 700 CALL CATS (=22 55 22 87)
Windbreede 12       Fax: +49 251 322312 99
D-48157 Muenster    Mob: +49 161 322312 1
Germany             GSM: +49 171 7755060