title: Sed prepend when searching for colon
body: <p>I need to search for each instance of a colon ":" and then prepend a string to the word before that colon. </p>
  
  <p>Example: </p>
  
  <p><strong>some data here word:number</strong> </p>
  
  <p>Desired outcome:</p>
  
  <p><strong>some data here prepend_word:number</strong></p>
  
  <p>I've tried:</p>
  
  <pre><code> sed "s/:/s/^/prepend_/g"
  </code></pre>
  
  <p>This adds prepend_ to the beginning of the line: <strong>prepend_some data here word:number</strong></p>
  
  <pre><code>sed "s/:/prepend_&amp;/g"
  </code></pre>
  
  <p>this adds prepend_ right before the colon: <strong>some data here wordprepend_:number</strong></p>