notepad++ - notepad++ 正则表达式在代码中搜索和替换
问题描述
我想转换
$this->cols['project_nr']['value']
进入
$this->project_nr
使用记事本++,使用正则表达式搜索和替换。
解决方案
试试这个 ...
查找内容:cols\['(.*?)'(.*\])
替换为:$1
推荐阅读
- javascript - 为 pdf 文档选择“嵌入”中的文本
- sql - 连接两个表,但仅在多列匹配时才提取值
- node.js - 如何在 socket.io 中创建一个新会话
- node.js - 无法在 Passport JS 中访问 req.user 的对象属性
- sql - 忽略其他列的重复数据删除行
- python - Python使用pywin32在没有循环的情况下更新MS Excel单元格范围
- javascript - 带有 querySelector 的 Gatsby 函数在具有正确 scss 的 .classList 上给出空错误
- python - 除非调用新脚本,否则 I2C 从机不会定期响应
- javascript - 单击时切换选项颜色(下拉菜单是否可见)
- ruby-on-rails - 在 Ruby on Rails 上客户端取消对后端的请求后会发生什么?