From: Gavin Sinclair Date: 2003-10-03T17:29:57+09:00 Subject: Re: String#gsub bug? > On Fri, Oct 03, 2003 at 03:34:46PM +0900, Gavin Sinclair wrote: >> "xyz".gsub(/[ \t]*$/, "") # -> "xyzxyz" >> "xyz".gsub(/[ \t]*$/, "F") # -> "xyzFxyz" >> >> Ruby 1.8.0, Cygwin. > > I can't reproduce the output you are showing. > > "xyz".gsub(/[ \t]*$/, "") -> "xyz" > "xyz".gsub(/[ \t]*$/, "F") -> "xyzF" > > [bruceb3@senselss tmp]$ ruby -v > ruby 1.8.0 (2003-08-04) [i686-linux] > > *shrug* > > The values I am seeing is what I would expect. > > -bruce. That's what I expect, too. I'll try again and make sure I've got the latest Ruby. Thanks, Gavin