sublimetext2 - How to exclude a charachter in sublime text regex match and replace -


i have following trying use st regex replace:

echo street = $this->input->post('street'); echo city= $this->input->post('city'); 

i want turn each line into:

echo city= trim($this->input->post('city')); 

the regex i'm using is:

\$this(.+); 

but matches entire line including final ';'

how can select only:

$this->input->post('city') 

try one:

\$this([^;]+) 

[^;] means semicolon :-)


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -