I'm using PhpStorm and I'd like to find shortest string between {{
and }}
by using Regex. An example is like this:
{{$ux['friend']['profile']['firstName']}} {{$ux['friend']['profile']['familyName']}}
I tried this:
\$(.*)(\['.*'\])+
which finds like this
$ux['friend']['profile']['firstName']}} {{$ux['friend']['profile']['familyName']
but I want to make it non-greedy -- only find the string between each match of {{
and }}
like
$ux['friend']['profile']['firstName']