From: Carlos Date: 2006-12-28T17:56:10+09:00 Subject: Re: Strip is not stripping trailing whitespace [Taylor Strait , 2006-12-28 09.31 CET] > > It couldn't have. > > > > strip removes newlines, because they are whitespace. > > On the other hand, neither chomp nor strip removes "\240". > > > >>> "foo \n".strip > > => "foo" > >>> ("foo " + 0240.chr).chomp > > => "foo \240" > > This is why I shouldn't code at 3:30am! I had used chop instead, which > of course truncated the text in rare cases. How can I remove \240? line.delete! "\240" or, if you want to delete them at the end only, line.sub! /\240+$/, "" Good luck. --