use*_*629 1 regex sublimetext2 sublimetext3
我有以下尝试使用 ST 正则表达式替换的内容:
echo Street = $this->input->post('Street');
echo City= $this->input->post('City');
Run Code Online (Sandbox Code Playgroud)
我想把每一行变成:
echo City= trim($this->input->post('City'));
Run Code Online (Sandbox Code Playgroud)
我使用的正则表达式是:
\$this(.+);
Run Code Online (Sandbox Code Playgroud)
但这匹配包括最后的“;”在内的整行
我怎样才能只选择:
$this->input->post('City')
Run Code Online (Sandbox Code Playgroud)