Answer the question
In order to leave comments, you need to log in
PHPStorm - how to search and replace with a regular expression?
In PHPStorm Ctrl+Shift+H
, I press , I press the checkmark Regex
, and in the first line (search line) I enter this: ->render_ajax\([^,]*, false
In the second: ->render_ajax\([^,]*, Ajax::STATUS_UNSUCCESS
I press Replace in Find Window - All Files
And PHPStorm replaces, for example, this: $this->render_ajax($message, false)
Here with this:
return $this->render_ajax([^,]*, Ajax::STATUS_SUCCESS);
return $this->render_ajax($message, Ajax::STATUS_SUCCESS);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question