Answer the question
In order to leave comments, you need to log in
How to use regular expression groups to replace in "Find and Replace" (Ctrl+H) in PhpStorm?
Hello! I want to use a group to replace. But its number is put instead. Why? I am attaching a screenshot.
As a result, preg_match_all();
Replaced by preg_2_not_all();
A should by preg_match_not_all();
But in Notepad ++ everything works as it should. How can I use this functionality for PhpStorm?
Here is the regular expression I'm searching for: (preg_)(.*)(_all)
Here is the replacement regular expression:preg_\2_not_all
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