title: How to exclude group from deleting
body: <p>i have this regex:</p>
  <pre><code>(%)([[:punct:]&amp;[:alnum:]&amp; ]{1,1})(%)
  </code></pre>
  <p><a href="https://regex101.com/r/FUmP8G/1" rel="nofollow noreferrer">https://regex101.com/r/FUmP8G/1</a></p>
  <p>and it's deleting whole 3 groups, how to keep 2nd group for searching but exclude it from deleting?</p>
  <p>For example:</p>
  <p>%@%</p>
  <p>Result:</p>
  <p>@</p>