Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要替换get_option('any_letter_number')为$options_css['any_letter_number']在 Notepad++ 中,我可以匹配我需要的内容,get_option\('.*?'\)但替换它$options_css\['.*?'\]不起作用。
get_option('any_letter_number')
$options_css['any_letter_number']
get_option\('.*?'\)
$options_css\['.*?'\]
任何帮助将不胜感激。
谢谢!
在正则表达式替换中,您使用$1来引用捕获的子模式。
$1
get_option\('(.*?'\) // replace with: $options_css['$1']