title: Access match in sed search/replace?
body: <p>I'd like to be able to replace <code>1</code> with <code>1.</code> in a block of text I have with varying numbers. </p>
  
  <p>So, how can I find out the matched digit to use in the replace?</p>
  
  <p>Here's an example :</p>
  
  <pre><code>echo "1   MORE TEXT HERE" | sed 's/[0-9]/[0-9]\./g' 
  </code></pre>
  
  <p>I'd like the <code>[0-9]</code> in the 2nd part of <code>sed</code> to give me the match.</p>