Notepad++ regular expression replace

后端 未结 1 1232
说谎
说谎 2021-01-23 12:06

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_optio

1条回答
  •  灰色年华
    2021-01-23 13:06

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

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

    0 讨论(0)
提交回复
热议问题