From: ts Date: 2004-05-14T23:21:27+09:00 Subject: Re: Regexp Error? >>>>> "S" == Simon Strandgaard writes: S> ts wrote: S> [snip] >> What do you expect with ? >> >> /(.*).*/ =~ "abc" S> According to the left-most-longest rule.. I would guess the output S> should be ["abc", "abc"].. Then you have make .* match *twice* :-) If the regexp can't match the empty string in the second .* (because it's included in the first), it must not give a result Guy Decoux