'PhpStorm / How to search using regular expression to skip some text from line
I want to replace all occurrences for following in PhpStorm. I have methods of phinx migrations as follows:
$table->removeIndexByName('user')
$table->removeIndexByName('addresses')
$table->removeIndexByName('cart')
I want to replace all occurrences by appending ->save() to become:
$table->removeIndexByName('user')->save();
$table->removeIndexByName('addresses')->save();
$table->removeIndexByName('cart')->save();
There are too many occurrences in too many files. So I am thinking of replacing them at once. Also I have some methods which already have ->save() appended, so I want to skip that too.
Any solutions are appreciated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
