>>>>> "R" == Robert Feldt <feldt / ce.chalmers.se> writes:

R> irb(main):003:0> "a".sub("a", "\\+")
R> => ""

svg% ruby -e 'p "abcdef".sub(/(.)./, "\\+")'
"acdef"
svg%


svg% ruby -e 'p "abcdef".sub(/(.).(..)/, "\\+")'
"cdef"
svg% 



Guy Decoux