From: ts Date: 2000-09-02T23:46:59+09:00 Subject: [ruby-talk:4752] Re: Possible regex bug? >>>>> "D" == Dave Thomas writes: D> However... The point of my original post was not to say that there are D> no differences between Perl and Ruby regexps, but to say that the D> behavior of String.split was consistent with Perl's when given a D> pattern that matched a zero length string. That seemed to be Conrad's D> concern. Yes but perl and ruby don't have the same notion of zero-length match pigeon% cat b.rb #!/usr/bin/ruby a = 'foo'.split /\w??/ p a pigeon% pigeon% b.rb ["f", "o", "o"] pigeon% pigeon% cat a.pl #!/usr/bin/perl -l @m = split (/\w??/, 'foo'); print "<@m>"; pigeon% pigeon% a.pl <> pigeon% now remove a `?' and compare the results. Guy Decoux