Search code examples
notepad++

notepad++ regex search and replace in code


I want to convert

$this->cols['project_nr']['value']

into

$this->project_nr

using notepad++, using regex search and replace.


Solution

  • Try this ...

    Find what: cols\['(.*?)'(.*\])
    Replace with: $1