From: Glen Holcomb Date: 2008-08-15T01:40:29+09:00 Subject: Inconsistent regexp behavior ------=_Part_122677_15376720.1218732194094 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I have a script with two lines: puts "toads suck".gsub(/(\s)/, "\\#{$1}") puts " a ".gsub(/(\s), "\\#{$1}") I get broken output for the first: toads\suck \ a\ Can anyone explain why this is happening. I'm convinced it shouldn't ever happen. -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_122677_15376720.1218732194094--