On 2/11/07, J. mp <joaomiguel.pereira / gmail.com> wrote:> Robert Dober wrote:> > On 2/10/07, J. mp <joaomiguel.pereira / gmail.com> wrote:> >>> >> Hi,> >> if I do this> >> ?> puts "usa".tr('a','b')> >> usb> >> => nil> >> >> > This is the idea of a genius , sorry couldn't  resist folks ;)> > <snip>> >> > Robert>> I can't get my answer from your answers, sorry> anyway, the case is:> >> puts "us".tr('','b') -> don't work>> the result shoul be usb but it blocks>>>> --> Posted via http://www.ruby-forum.com/.>>puts "us¶¯".sub('¶¯','a')
-- http://www.kakueki.com/ruby/list.html