I\'m trying to grab data from a MySQL database and use Ruby to reformat it into a flat text file. Some of my MySQL data contains double quotes like so:
<
This will do it if you don't want to modify s:
s
new_s = s.gsub /"/, '|'
If you do want to modify s:
s.gsub! /"/, '|'