From: Dave Thomas Date: 2000-09-02T23:07:52+09:00 Subject: [ruby-talk:4748] Re: Possible regex bug? ts writes: > But when you write regexp with non-greedyness you see the difference : This would seem to be a problem with Perl ;-) Try is with a zero length pattern: print "<$&>\n" while "foo" =~ // vs "foo".scan(//) { print "<#$&>\n" } Dave