From: Dave Bass Date: 2008-06-11T03:58:14+09:00 Subject: Re: replacing a character in a string James Gray wrote: > cal_name.tr("_", " ") Coming recently from Perl, this looks very familiar to me. In Perl syntax: $cal_name =~ tr/_/ /; In Ruby you'll need cal_name.tr!("_", " ") if you want to make the substitution permanent. (I keep getting caught by this!) Or cal_name.tr_s!("_", " ") if you want to squeeze multiple space characters down to a single space too. -- Posted via http://www.ruby-forum.com/.