Hi, "\000".gsub("\000") { "\\000" } # => "\\000" "\000".gsub("\000", "\\000") # => "\00000" I expected both to return the same result. Just tell me it's not a bug and I'm happy :-) Regards, Michael