title: Could someone please explain the following Ruby code to me in detail?
body: <p>I nearly had this challenge on Code Wars in the bag but, I blew it because my knowledge of <code>gsub</code> is sub-par at best. While I roughly understand the concept of <code>gsub</code>, I would like a more thorough understanding of it (different ways you can use it could be helpful to my development) as well as a bit by bit explanation of the code below.</p>
  
  <pre><code>def autocorrect(input)
    input.gsub(/\b(you+|u)\b/i, 'your sister')
  end
  </code></pre>