title: How to exclude a charachter in sublime text regex match and replace
body: <p>I have the following for which I am trying to use the ST regex replace:</p>
  
  <pre><code>echo Street = $this-&gt;input-&gt;post('Street');
  echo City= $this-&gt;input-&gt;post('City');
  </code></pre>
  
  <p>I want to turn each line into:</p>
  
  <pre><code>echo City= trim($this-&gt;input-&gt;post('City'));
  </code></pre>
  
  <p>The regex I'm using is:</p>
  
  <pre><code>\$this(.+);
  </code></pre>
  
  <p>but this matches the entire line including the final ';'</p>
  
  <p>how can I select only:</p>
  
  <pre><code>$this-&gt;input-&gt;post('City')
  </code></pre>