From: Joel VanderWerf Date: 2008-12-21T05:31:04+09:00 Subject: Re: add text at beginning of a string Phlip wrote: >> irb(main):002:0> s.insert(0, "hello ") > > ['hello ', s].join > > ...and how about unshift? > > Any sicker ways out there?? Besides s = 'hello ' + s? irb(main):001:0> s = " world" => " world" irb(main):002:0> s[/\A/] = "hello," => "hello," irb(main):003:0> s => "hello, world" -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407