How would I replace in PhpStorm (it is not important I guess) all occurrences of (selecting string which starts with {!! and ends with !!}):
{!! $arr['my.key.1234'] !!}
to {!! $arr('my.key.1234') !!}
(note change in braces)
I tried to select the key with this regex:
\{\!\! \$arr\[.*.] !!} which works but how do I now replace it?
EDIT:
I only want to select array key which is variable so my regex doesn't work - it selects whole line.
