I want to find this string:
{{< img "/img/image-name.png" "Image Caption" >}}
And replace with:
![Image Caption](/img/image-name.png)
So the regex for finding:
(\{\{<) (img) "(.*?)" "(.*?)" (>\}\})
And the regex for replacing:
![$4]($3)
$4
-- will take the 4th group$3
-- will take the 3rd group