title: Why does sed not replace all occurrences?
body: <p>If I run this code in bash:</p>
  
  <pre><code>echo dog dog dos | sed -r 's:dog:log:'
  </code></pre>
  
  <p>it gives output:</p>
  
  <pre><code>log dog dos
  </code></pre>
  
  <p>How can I make it replace all occurrences of dog?</p>