[英]Notepad++ regular expression replace
I need to replace get_option('any_letter_number')
with $options_css['any_letter_number']
In Notepad++, I can match what I need with get_option\\('.*?'\\)
but replacing it with $options_css\\['.*?'\\]
doesn't work. 我需要用
$options_css['any_letter_number']
替换get_option('any_letter_number')
在记事本++中,我可以用get_option\\('.*?'\\)
匹配我需要的东西,但是用$options_css\\['.*?'\\]
替换它$options_css\\['.*?'\\]
不起作用。
Any help will be appreciated. 任何帮助将不胜感激。
Thanks! 谢谢!
In a regex replacement, you use $1
to refer to a captured subpattern. 在正则表达式替换中,您使用
$1
引用捕获的子模式。
get_option\('(.*?'\)
// replace with:
$options_css['$1']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.