From: Mike Steiner Date: 2007-05-03T01:26:36+09:00 Subject: replacing parts of newlines ------=_Part_6153_8138869.1178123194824 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm writing a script to convert text into a csv file to import into MS Excel (under Windows), and Excel allows multiline text within a cell, but the newlines (\x0D\x0A) have to be replaced with only a \x0A for Excel to put everything into one cell. The problem is that in Ruby, if I do: newfield = field.gsub ( "\x0D" , "" ) it doesn't do anything because Ruby treats \x0D\x0A as a unit. Is there any way around this? Mike Steiner ------=_Part_6153_8138869.1178123194824--