Fixed my own problem again. This is getting to be a habit. shitty_html.gsub!(/\r/, '') Thanks for suggestions! * Dick Davies <rasputnik / hellooperator.net> [0658 11:58]: > * Robert Klemme <bob.news / gmx.net> [0624 11:24]: > > > > "Dick Davies" <rasputnik / hellooperator.net> 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