From: Dick Davies Date: 2004-06-09T20:01:38+09:00 Subject: Re: strip DOS ^Ms? Fixed my own problem again. This is getting to be a habit. shitty_html.gsub!(/\r/, '') Thanks for suggestions! * Dick Davies [0658 11:58]: > * Robert Klemme [0624 11:24]: > > > > "Dick Davies" schrieb im Newsbeitrag > > news:20040609094700.GA21180@lb.tenfour... > > > For no good reason I have buttloads of '^M's all over the file > > > when I check it in vi. What would I feed gsub to strip them out? > > while ( line = gets ) > > line.chomp! > > p line # no more \r\n at end > > end -- Ideas don't stay in some minds very long because they don't like solitary confinement. Rasputin :: Jack of All Trades - Master of Nuns