From: Gavin Sinclair Date: 2003-10-03T15:34:46+09:00 Subject: String#gsub bug? Is this a bug in Ruby or a bug in my brain? I've stared at it for long enough. "xyz".gsub(/[ \t]*$/, "") # -> "xyzxyz" "xyz".gsub(/[ \t]*$/, "F") # -> "xyzFxyz" Ruby 1.8.0, Cygwin. Slapping my forehead in advance, Gavin