R
R
Roman Govorov2019-08-02 12:24:16
phpstorm
Roman Govorov, 2019-08-02 12:24:16

How to do bulk replacement in PhpStorm, for example inside certain tags?

For example, there is an array:

'REGION_1' => 'Арагацотн',
'REGION_2' => 'Арарат',
'REGION_3' => 'Армавир',
'REGION_4' => 'Вайоц Дзор',
'REGION_5' => 'Гехаркуник',

I want to do the following bulk replacement in the PhpStorm editor, replace all cities with the NULL value (it doesn't matter why, this is just an example).
Is it possible to somehow write a type to replace everything starting with ' => ' and ending with ', ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
1210mk2, 2019-08-02
@RGameShow

There is a regex checkbox in Ctrl-R. She will help. The storm will even shine itself on what it will affect and what it will change.
top
bottom
=> NULL,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question