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!
In a regex replacement, you use $1
to refer to a captured subpattern.
get_option\('(.*?'\)
// replace with:
$options_css['$1']
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.