title: Finding text between tags and replacing it along with the tags
body: <p>I am using The following regex pattern to find text between <code>[code]</code> and <code>[/code]</code> tags:</p>
  
  <pre><code>(?&lt;=[code]).*?(?=[/code])
  </code></pre>
  
  <p>It returns me anything which is enclosed between these 2 tags, e.g. this: <code>[code]return Hi There;[/code]</code> gives me <code>return Hi There;</code>.</p>
  
  <p>I need help with regex to replace entire text <strong>along</strong> with the tags. </p>