title: How to exclude the last character from the below reg expression response
body: <p>I am having the below text response I created a regular expression but I want to exclude the last character from the response.</p>
  
  <p><strong>INPUT</strong>: </p>
  
  <pre><code>href=\"admin_task_detail?rid=d652a3dd-fff0-4174-a065-5158298493af&amp;tid=4947358c-9f5a-4174-8699-7fa12f9ac3c8&amp;v=5ecb5743a92e7\" &gt;T4947-C3C8&lt;\/a&gt;","@data-order":"T4947-C3C8"},
  </code></pre>
  
  <p><strong>Reg Exp which I tried</strong> </p>
  
  <pre><code>tid=(.+?)\"
  </code></pre>
  
  <p><strong>Results:</strong>  </p>
  
  <pre><code>Match[1][0]=tid=4947358c-9f5a-4174-8699-7fa12f9ac3c8&amp;v=5ecb5743a92e7\"
  Match[1][1]=4947358c-9f5a-4174-8699-7fa12f9ac3c8&amp;v=5ecb5743a92e7\
  </code></pre>
  
  <p>The slash symbol need to get excluded from the response.</p>