From: Wybo Dekker Date: 2008-04-03T05:12:16+09:00 Subject: confused by 'test'.gsub(/.*/,'x') Why do I get "xx" instead of "x" in the following: $ irb >> 'test'.gsub(/.*/,'x') => "xx" and even more confusing (to me): >> "x\n".gsub(/.*/,'y') => "yy\ny" (I expected "y\n") -- Wybo