From: c p r a s l e y at h o m e dot c o m (Chris) Date: 2002-01-20T06:00:33+09:00 Subject: Re: Chopping and chomping to no avail On Fri, 18 Jan 2002 21:49:34 GMT, "Michael Hayes" wrote in comp.lang.ruby: >I can say: > > str.chomp.chomp("\r") > >or make up some regexp horror, but I'd really >like to know if there is some method that I've >overlooked that can flexibly, reliably and >safely remove a line terminator from any string. You could use str = (str + "\n").chomp to work-around the apparent bugs until you upgrade to 1.7.