I'm trying to replace all instances of
我正在尝试替换所有的实例
$offer->variablenames
with
$offer['variablenames']
Is this possible? I'm using advanced find plugin for gedit.
这可能吗?我正在使用gedit的高级查找插件。
It's just heiroglyphs to me... Would very much appreciate help.
Thanks
这对我来说只是偶像......非常感谢帮助。谢谢
2 个解决方案
#1
12
Find what:
\$offer\-\>([a-zA-Z0-9_]*)
Replace with:
$offer['\1']
Make sure to have Regular expression
checkbox checked.
确保选中正则表达式复选框。
#2
1
I'm not sure what advanced find plugin syntax is. In vim I would use s/$offer->\(.*\)/$offer['\1']/g
我不确定什么是高级查找插件语法。在vim我会使用s / $ offer - > \(。* \)/ $ offer ['\ 1'] / g
#1
12
Find what:
\$offer\-\>([a-zA-Z0-9_]*)
Replace with:
$offer['\1']
Make sure to have Regular expression
checkbox checked.
确保选中正则表达式复选框。
#2
1
I'm not sure what advanced find plugin syntax is. In vim I would use s/$offer->\(.*\)/$offer['\1']/g
我不确定什么是高级查找插件语法。在vim我会使用s / $ offer - > \(。* \)/ $ offer ['\ 1'] / g