正则表达式 - 查找并替换记事本++

时间:2012-11-26 09:17:54

标签: regex notepad++

我正在使用notepad ++。

我想找到以下

$result["value"]

并将其替换为

$result->Items[0]->value

那么有人可以用正则表达式帮助我吗?

2 个答案:

答案 0 :(得分:2)

这个适用于我:

找到:\$result\["([^"]+)"\]

替换为:$result->Items[0]->\1

答案 1 :(得分:0)

使用此正则表达式

\$result\["value"\]

并将其替换为

$result->Items[0]->value
相关问题