1

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 Answer 1

1

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

get_option\('(.*?'\)
// replace with:
$options_css['$1']
Sign up to request clarification or add additional context in comments.

1 Comment

Just for future reference, Notepad++ uses \1 instead of $1.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.