From: Jens Wille Date: 2008-04-03T08:03:55+09:00 Subject: Re: confused by 'test'.gsub(/.*/,'x') Januski, Ken [2008-04-03 00:08]: > Of course my background is Perl and I believe that's how it would > work there. no, works the same way there: sh> perl -e '$s = "test"; $s =~ s/.*/x/g; print "$s\n"' xx (only a lot more complicated ;-) btw: python, php and javascript, too. oh, and here's what oniguruma does: irb> Oniguruma::ORegexp.new('.*').gsub('test', 'x') =>"xx" cheers jens