From: "Jan E." Date: 2012-04-19T05:02:15+09:00 Subject: Re: Converting CSV Well, parsing the file and processing its content is certainly more difficult than doing search and replace. File.open 'myfile.csv', 'r+' do |csv| new_csv = csv.read.gsub(/[^\n\r;]+/, '"\0"').gsub(';', ',') csv.print new_csv end This quotes everything between the semicolons and then replaces them with commas. -- Posted via http://www.ruby-forum.com/.