Andreas Schwarz <usenet / andreas-s.net> writes:

> puts "hello".gsub!(/h/,"\\\\'")
>
> "\\" is reserved for backreferences.

Hello Andreas,

Oh, yes. This works fine. Thank you (and of course Simon).

Patrick