title: regex: replace matches with their ids
body: <p>I'm having this situation and I'm wondering if i could do it with regex:</p>
  
  <p>I have a string in this format:</p>
  
  <pre><code>{{We all}} love {{stackoverflow}}.
  </code></pre>
  
  <p>My question is how can I use regex replace to get:</p>
  
  <pre><code>match1 love match2
  </code></pre>