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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -