首页 > 解决方案 > notepad++ 正则表达式在代码中搜索和替换

问题描述

我想转换

$this->cols['project_nr']['value']

进入

$this->project_nr

使用记事本++,使用正则表达式搜索和替换。

标签: notepad++

解决方案


试试这个 ...

查找内容:cols\['(.*?)'(.*\])
替换为:$1


推荐阅读