2.0.0p353 :001 > 'foo    bar'.gsub(/ (.)/, '\ \1')
     => "foo\\  \\  bar" 

Intended?