On Dec 28, 2006, at 24:31, Taylor Strait wrote: >> 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? String#gsub line.gsub(/[\240]/, '') -- Eric Hodel - drbrain / segment7.net - http://blog.segment7.net I LIT YOUR GEM ON FIRE!