Marcus
Marcus

Reputation: 561

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.

Any help will be appreciated.

Thanks!

Upvotes: 1

Views: 826

Answers (1)

Niet the Dark Absol
Niet the Dark Absol

Reputation: 324610

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

get_option\('(.*?'\)
// replace with:
$options_css['$1']

Upvotes: 1

Related Questions