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:
<
You could use something like:
text = 'Matthew "Matt" Perry' text.tr(%q{"'}, '|') # => "Matthew |Matt| Perry" text = "Matthew 'Matt' Perry" text.tr(%q{"'}, '|') # => "Matthew |Matt| Perry"