From: Siep Korteling Date: 2008-02-06T05:30:06+09:00 Subject: Re: ruby wish-list Roger Pack wrote: > Is it possible to easily strip arbitrary characters off a string? > a la "abc:".strip ':' > ? > it looks like it's possible with gsub > abc:'.gsub(/:$/, '') > however the wish is a simpler function for it. > > If not then it goes on the wish list. > > Thanks. Sorry to ramble on. > -Roger "abc:".chomp(":") or "abc:".chomp!(":") Regards, Siep -- Posted via http://www.ruby-forum.com/.