Notepad++ regular expression replace

2020-04-19 07:59发布

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.

Any help will be appreciated.

Thanks!

1条回答
对你真心纯属浪费
2楼-- · 2020-04-19 08:36

In a regex replacement, you use $1 to refer to a captured subpattern.

get_option\('(.*?'\)
// replace with:
$options_css['$1']
查看更多
登录 后发表回答