From: "Brian Schröder" Date: 2005-10-29T22:49:00+09:00 Subject: Re: chain regex replacement On 29/10/05, onurturgay@gmail.com wrote: > hi, > I want to make a chain replacement in my String object. For example > a => b > c => d > f => k > > etc. Is there a way to make this replacement in one regex or something > similar? I want to write a custom upcase downcase method, as the normal > one doesnt support unicode (and ruby-unicode doesnt compile on > windows). > > Thanks in advance > onur > > > Did you look at tr "a big boy".tr("a-z", "A-Z") => "A BIG BOY" regards, Brian -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/