title: Reference 10th submatch
body: <p>Normally when you call sed, you can call <code>\1</code> to reference the submatch number one, i.e.:</p>
  
  <pre><code>&lt;something&gt; | sed "s/&lt;regex&gt;\(&lt;regex&gt;\)&lt;regex&gt;/\1/"
  </code></pre>
  
  <p>This will just take the middle regex and remove the outer ones.</p>
  
  <p>But what do you do, if you have more then 9 matches? Simply writing <code>\10</code> doesn't work, because it will be interpreted as <code>take submatch number one and add a zero behind it</code>.</p>