"bb".tr_s("^a", "c")

e$B0J2<$N$h$&$Ke(B “bb”.tr_s("^a", “c”) e$B$,e(B “cc” e$B$K$J$j$^$9!#e(B

% ./ruby -ve ‘p “bb”.tr_s("^a", “c”)’
ruby 1.9.0 (2008-05-02 revision 16285) [i686-linux]
“cc”

1.8 e$B$G$Oe(B “c” e$B$K$J$j$^$9!#e(B

% ruby-1.8 -ve ‘p “bb”.tr_s("^a", “c”)’
ruby 1.8.7 (2008-05-02 patchlevel 5000) [i686-linux]
“c”