Chad Perrin wrote: > On Wed, Feb 06, 2008 at 05:30:06AM +0900, Siep Korteling wrote: >> > Thanks. Sorry to ramble on. >> > -Roger >> >> "abc:".chomp(":") >> or >> "abc:".chomp!(":") > > Note: That only works if the character you want to strip away is the > last > character in the string. When you don't supply an argument, it removes > only any newline character at the end of the string, e.g.: (...) Yes. Well you can chop off any substring with chomp("any string"). If "strip" means delete all occurances of a substring, there is uhm, delete. "a:bc:".delete(":") => "abc" Regards, Siep -- Posted via http://www.ruby-forum.com/.