title: What is the difference between tr and gsub?
body: <p>I was reading the Ruby documentation and got confused with the difference between <code>gsub</code> and <code>tr</code>. What is the difference between the two?</p>