On Thu, 23 Mar 2000, Kai Henningsen wrote:
> $ 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.
Indeed, but the point is it doesn't go for the longest match, but for
the first match.
Just like suffix = -* : .*
:-)))
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.